Creating Functions
Explore how to create functions that handle dispatching actions and updating the app view based on Redux state changes. Understand connecting events to dispatch and using subscribe for consistent UI updates.
We'll cover the following...
We'll cover the following...
To make our demo functional, let’s create a click handler for each button that will use the dispatch() function to notify our store that an action needs to be performed:
dispatch(action);
...