$ git clone https://github.com/davidrf/intro-to-redux-day-2-review.git
$ cd intro-to-redux-day-2-review
$ yarn install
$ yarn start
Convert this application from using React local state to using state from Redux.
You will find a src/rootReducer
file that contains the reducer and actions that you'll need.
You should not have to modify this file to get the application working.
The following is a list of recommended steps to accomplishing this goal:
- Add a
Provider
to your application. - Connect your component using
connect
. - Delete the state from the
App
component, write amapStateToProps
function, and pass it toconnect
. - Write
mapDispatchToProps
and pass it toconnect
. Make the necessary changes to get the input fields to work again.