React Presentation
Ref: https://twitter.com/wesbos/status/598144948559605760/photo/1?ref_src=twsrc%5Etfw&ref_url=http%3A%2F%2Fchibicode.com%2Freact-js-introduction-for-people-who-know-just-enough-jquery-to-get-by%2F
- manipulates state directly
- State is in DOM (a bad database) / Server side?
- Wild West
- State is on both places! Kinda.
- Really slow and error prone
- State is in one place and let me take care of the state transitions efficiently
- React's model
- Declare view based on props / state
- Re-runs render function when state changes (and a few other things)
- Counter with two buttons.
- Use Create React App:
npm install -g create-react-app
create-react-app my-app
cd my-app
npm start