React
React seems to have three different key โgroupsโ to consider:
- React, a โlibrary for web and native user interfacesโ.
- React DOM, which is a set of methods only supported for web applications
- React Native, which is the native equivalent of React DOM
Anything on the UI in React is a component.
Implementing a Designโ
React recommends1 taking the following 5-step process to implement a UI:
- Break down the screen into a component hierarchy
- Build a static version of the site
- Figure out the minimum state required to represent the UIโs state
- Identify where state should live. In general, this would be the lowest common parent amongst all components that need access to the state.
- Add inverse data flow. This essentially involves creating
onEvent
props that hook into theset
methods fromuseState
.