Skip to content

Fomantic UI + NextJS (Version 13) #2836

Closed Answered by connorpwilliams
connorpwilliams asked this question in General
Discussion options

You must be logged in to vote

Ooop, I found a way forward.

Looks I need a better understanding of the 'use client' directive.

How I got this to work:
npm install --save semantic-ui-react
Then in any component that I want to have a component from semantic ui react, make sure to have the 'use client' directive at the top of the component (so far just have it in the layout.js file but I presume it would also work in the page.js file?)

Also I removed the two script tags from RootLayout section.

Finally switched all the divs that I copied from the fomantic-ui website to the react component from Semantic UI React.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by connorpwilliams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant