Add technical notes.

This commit is contained in:
Dorian 2017-09-13 08:20:45 -04:00
parent 6395e6c4b4
commit f0318ef1a7
1 changed files with 13 additions and 0 deletions

13
docs/devnotes.md Normal file
View File

@ -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.