E
E
Evginii-oslo2021-07-03 18:45:30
redux
Evginii-oslo, 2021-07-03 18:45:30

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 question

Ask a Question

731 491 924 answers to any question