/react-render-prop-component-for-state

An example implementation of React's render props for managing state on behalf of a component

Primary LanguageJavaScript

react-render-prop-component-for-state

Build Status Slack Greenkeeper badge

Showcasing how render prop components can be used to manage state. In this example, a render prop component with a child as a function is used to manage state of a functional component. Read more about it.

Installation

  • git clone git@github.com:the-road-to-learn-react/react-render-prop-component-for-state.git
  • cd react-render-prop-component-for-state
  • npm install
  • npm start
  • visit http://localhost:3000