react-bulma-components
react-bulma-components copied to clipboard
Can't use Navbar in Next.js server component
Describe the bug
Can't use Navbar in Next.js server component because: https://github.com/couds/react-bulma-components/blob/82d13fc9d8c9ffee46c21318450127b92cbf128e/src/components/navbar/context.js#L3
frustrating because I don't need the active
toggle anyway 😑
Screenshots
Server Error
TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/context-in-server-component
This error happened while generating the page. Any console logs will be displayed in the terminal window.