From f0318ef1a7a5577381705f7c9f1aa51fbef9523f Mon Sep 17 00:00:00 2001 From: Dorian Pula <dorian.pula@amber-penguin-software.ca> Date: Wed, 13 Sep 2017 08:20:45 -0400 Subject: [PATCH] Add technical notes. --- docs/devnotes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/devnotes.md diff --git a/docs/devnotes.md b/docs/devnotes.md new file mode 100644 index 0000000..8f81cab --- /dev/null +++ b/docs/devnotes.md @@ -0,0 +1,13 @@ +# Technical Notes + +## Frontend + +- using [preact](https://github.com/developit/preact) for a smaller setup that + is compatible with React. +- [importing preact into modules](https://github.com/developit/preact#import-what-you-need) +- using [preact-compat](https://www.npmjs.com/package/preact-compat) to avoid + migrating all of React code to preact. +- [server side rendering in preact](http://thecodebarbarian.com/server-side-rendering-with-preact-and-firebase.html) +- use `process.env.MY_FLAG' using + [webpack's DefinePlugin to pass in envs](https://webpack.js.org/plugins/define-plugin/#feature-flags). + - this is useful when dealing with separating server-only and client-only code.