Hey I had a problem while using useContext (React Hooks) and useReducer (for store a array with 4 values of string). Explained in the pictures down below what exactly it's wrong and what I have done. Thank u
App.js - using ItemsByCategory (Line 7). using useContext for passing for Categories component object with 2 values - CategoriesArray and CategoriesDisaptch (Line 37-39)
At categories component, I have a problem when adding the line of onClick function. Without it, works fine.
The error that showed for me, added as an image.