Building the Generic Action
Learn how to build the action discussed previously.
We'll cover the following...
Potentially, we would like each of our data reducers to be able to handle a special UPDATE_DATA
action and extract the relevant parts it needs:
const updateData = ({
type: UPDATE_DATA,
payload: {
recipes: {
63: {
id:
...