Skip to content
Discussion options

You must be logged in to vote

CountriesList.{js | jsx} needs to be a client component as it uses functions that need the browser enviroment (useState, UseEffect and fetch). And there's no problem to import a client component in a server one!

I hope it helps!

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@mohit2404
Comment options

@ananuness
Comment options

@mohit2404
Comment options

@ananuness
Comment options

Answer selected by SimonKhalaf
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants