-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Side Components #7
Comments
By default all the components of Nextjs are Server component, we have added 'use client' directive to make it client component. If you want to use hooks on the page you have to make it client component. Now if you want to use any request from the server to populate data, you can follow below steps.
I hope it will solve your issue. |
I tried @sandipthemes |
@GMJSilmaro We will add one API demo page asap, with free version, I hope that will work. |
Hello there,
I'm trying this template, i dont see any docs on how to use server components. I would like to make requests from the server instead of the client. I can see all components are client components so all of my requests are executed by the browser, which makes thing very slow.
Is there anyway to achieve this?
Thanks in advanced.
The text was updated successfully, but these errors were encountered: