I’m trying to update state, with an object of arrays, but it doesn’t update on first button click
This is a bit of a long but here goes. I’m currently learning about hooks and reducer functions and am using it as an opportunity to build a rough quiz app that utilizes api calls, hooks, reducers and reducer hooks. I am aware that this is probably designed poorly at the moment, and could probably be fixed with the context api, however I am intent on understanding what I am building and as a result am trying to complete the task without using them (as they are also on my to learn list).