Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
VB:: React Context API: .createContext is not a function error #129
I want to use the new Context API (introduced with React v16.3.0) but receiving this error:
My project dependencies are these:
As you see, I am using v16.4.0 of both react and react-dom so it should not throw this error.
I've tested createContext with another React project(not Divi module) with these dependences:
And it worked just fine.
Am I missing something?
Steps To Reproduce
Thank you Dustin.