From the course: Learning Next.js

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Search, request, and pre-render content with SSR

Search, request, and pre-render content with SSR

From the course: Learning Next.js

Search, request, and pre-render content with SSR

- So, now we are successfully making a request. So, we have followed all the steps. So, first the step which is to make an API call using this resource which is the New York Times API. Then we pre-render the data. So, this is the role of get server side props to pre-render data at request sign and the results we have it here. We're going to use the exact same source code here so that we used in order to generate statically the top stories here it's going to be the same format to display the results. So, let's check this out. We're going to make a try and search again for education. We're going to land on this here and now we've got the results. That is perfect. So now, what happened is that we were able to pre-render data based on the user's input. So, this is at request time happening between client side transitions. So, this is a good example with the search input. So, let's go back. So, this search input example…

Contents