We were using react's context API in our next.js 12 apps.
We want to upgrade to next.js 13.
We get this error:
react__WEBPACK_IMPORTED_MODULE_0__.createContext is not a function
For this code:
import React from 'react'
const SiteContext = React.createContext()
export default SiteContext
What should we do now? I can't find resources online for this.
Also, we need the Context API on the server because SEO matters and we don't want to render on the client.