Using context Api with useReducer hook in next.js gives undifined back when useContext is called

It should be

export const useQuizContext = () => useContext(quizContext)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top