desklamp

  • To create a nested route (like /home/homey ), simply nest the component inside of the component within and your route will be created .
  • Container gives you the container component with all the application state.
  • The function call returns the current state object.
  • Desklamp allows you to keep your state in a single state object.
  • // Child components become your routable urls

clean routing and state container for react
Continue reading “desklamp”

Getting Started ReactJS State Propagation

Getting Started ReactJS State Propagation
☞

  • The list will only be updated if the list changes, not on every re-render triggered by the parent component.
  • We will look at the Immutable JavaScript library created by Facebook in order to understand more efficient ways to notify React when a component needs to be re-rendered.
  • The new value is used to update the state of the input component’s parent component.
  • As the parent component, Color is responsible for maintaining the state and triggering the re-rendering of its child components.
  • The child component is not responsible for updating anything with the new data, it simply passes that data along to its parent component which performs the update.

An earlier article explored data within a React component. Data is represented by two structures–properties and state. The former is used to represent immutable data,
Continue reading “Getting Started ReactJS State Propagation”