Answer the question
In order to leave comments, you need to log in
Question about Next is. How to get props correctly?
Unexpectedly, nextjs was given for testing.
I worked with React before, Next, not really, with a hat. I'm reading the doc.
Three pages: posts, addPost, [slug].
That is, I need to add posts and see this added post in the list of other posts when I go to posts.
Is it better to use getServerSideProps on posts or getStatisProps with revalidate:1/3/n seconds?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question