This document provides an introduction to React for developers. It explains that React is a JavaScript library for building user interfaces developed by Facebook. It then covers key React concepts like components, props, state, rendering, and the virtual DOM. It also discusses tools and patterns for architecting React apps like Flux, Redux, routing, internationalization, and async logic. Finally, it recommends designing state carefully, using standards like Flux Standard Action, avoiding side effects in reducers, and leveraging tools like React DevTools.
26. ONE MORE THING
Design your state carefully.
Use Flux Standard Action for your action types.
Avoid side-e鍖ects in your reducers.
Use Immutable.js to enforce immutability.
27. DEVTOOLS
React Developer Tools for Chrome
Elements-like panel for virtual DOM.
Redux DevTools (sidebar panel)
Complete visibility over actions and state, time-traveling.
28. SUMMARY
React code looks just like plain JavaScript.
React gives you much more freedom to architect your app, but
that usually means more time spent con鍖guring it.
Not much work done in standardizing React apps.
Flux Standard Action is a start.