- nvm/node
- run project
- where we came from (jade, meteor)
- learned a lot
- show mess
- why lint, type, test, refactor?
- goal for this is understanding. gonna be slow. please stop me. please ask questions.
- demo
- 2 files that make this up
- data vs presentation
- named vs default
- draw example
- prefer default
- packages vs app files
- aliases
- query
- template literal tag
- graphiql app
- client token
- demo saved query
-
client side global store
-
subscribe
-
dispatches
-
show how it's built
-
creation of store
-
actions
-
types
-
reducers
- spread
- object syntax
-
sagas
- vs createClass
- a lot nicer to write
- same at end of the day
- declare props and types passed to component
- will be replaced by flow types
- declared as variable on class
- vs constructor
- state change = re render
- action buttons index state not used
- functions
- could be static if no this
- refs
- passed to stateless components
- can write jsx in methods
- used to manage life of component
- can optimize performance of components
- jsx markup
- can do some logic outside of return
- we want these to be small
- no if statements
- i don't think we need try/catch anymore?
- render re-run when state or props updated, can be forced or prevented
- blah blah
- best practice whenever possible
- should be the standard for our view layers going forward
- style objects
- classes