Skip to content

useSwr in next js 13 appdir #2859

Answered by ananuness
Bravemobin asked this question in Q&A
Discussion options

You must be logged in to vote

Hii! I don't know if you already found the answer, but it's good to remember that you can add Client components to your Server components! Therefore, it is good to separate any block of code that needs the "use client" in another file and then import it into the Server component.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bravemobin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants