connect()
You need to follow two steps to use your store in your container:
Use mapStateToProps(): It maps the state variables from your store to the props that you specify.
mapStateToProps()
Connect the above props to your container: The object returned by the mapStateToProps function is connected to the container. You can import connect() from react-redux.
mapStateToProps
react-redux