I am trying to practice with useReducer and context api but when trying to execute the function that returns the data, I get an infinite loop
reducer.js