October 2019
Intermediate to advanced
426 pages
11h 49m
English
The only component that still needs to be connected now, is the App component. Here, we are going to inject the fetchTodos action creator, and update the component so that it uses the connected versions of all the other components.
Let's connect the App component now:
import ConnectedAddTodo from '../containers/ConnectedAddTodo'import ConnectedTodoList from '../containers/ConnectedTodoList'import ConnectedTodoFilter from '../containers/ConnectedTodoFilter'
return ( <div style={{ width: 400 }}> <Header /> <ConnectedAddTodo /> <hr /> <ConnectedTodoList /> <hr /> ...Read now
Unlock full access