Nextjs is a react-node framework (i.e. it combines reactjs and nodejs so that your project is all in one place).
If you have tried Data fetching ...
For further actions, you may consider blocking this person and/or reporting abuse
Nextjs data fetching methods are used for static and server side rendering. Itβs ok to fetch data in componentDidMount or useEffect if you donβt really need static/server side rendering.
Thank you Bino. π€
Is there a way you can enlighten me on this static/server rendering thing?
Like I want to know why it is a better way of doing things
It you fetch the data in getInitialProps then your html has the data.
Benefits:
Thank you Saurabh. These benefits sounds so awesome π€
I will dig more to find out why itβs not working for me π€¦π»ββοΈπ
I can't say why it isnt working for you.
But from my debugging experiences in next.js, i will say fetch on server isnt same as fetch on client
Wow... Any suggestions on what I might have to try out?