Created
April 8, 2023 17:12
-
-
Save Msirkovsky/194a85c7ba35bc240c5ddfbf6a1f1d34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On the server side: | |
function ServerComponent(){ | |
return <div>I am a server component</div> | |
} | |
<ClientComponent> | |
<ServerComponent></ServerComponent> | |
</ClientComponent> | |
// On the client side: | |
<ClientComponent> | |
<div>I am a server component</div> | |
</ClientComponent> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment