cutterbuck / map-dispatch-to-props-lab-web-103017

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mapDispatchToProps Lab

Objectives

Use the React Redux library to connect the store to the React application.
Utilize the Provider component, and the connect() function in the process. Make sure to also implement mapDispatchToProps().

Overview

In this application we will be building an application to keep track of our favorite restaurants. We will keep our React application separated from our Redux application by using the Provider component and the connect() function. We will not include a reference to the store in any component except for the Provider.

Instructions

What we want to do here is use the bindActionCreators() function from the Redux library and and pass dispatch into our mapDispatchToProps() function so that we can connect() the addRestaurant() function as a props to our RestaurantInput component.

About


Languages

Language:JavaScript 79.2%Language:HTML 17.3%Language:CSS 3.6%