Reactjs – React useReducer in Strict Mode duplicating result
Strict Mode is triggering my reducer function twice which is expected. What I didn't expect was the returned state to have duplicated elements in it. What I realise is I'm not using useReducer correctly, but I don't know how to…