Actions are objects, and we can add additional keys to them. That means we can pass params to actions, and add those params to the action - which are then passed to the reducers. We'll use that to pass the new todo .
Summary of Content:
- Add a parameter to the addTodo action, and pass that with the action to the reducer.
- Pass in a hardcoded new task to the action, and see that in the console
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty