Message from JavaScript discussions

October 2020

— Https://www.youtube.com/watch?v=CyCKSNalpEE

— 

When use react hooks in my application, application run for a blink of second and shows dispatch is not a function as error.

— Why it happens and how to rectify it?

— You are using useContext

— I think you want useReducer

— Use reducer already used in context

— But in context.provider I had send that

— Ok I see you are doing in different way

— Can you give me an example?

— Wait

— Ok

— Is this error or warning?