From the course: The Freelance Stack: Real Project with Next.js and Strapi

Unlock this course with a free trial

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

Render InfoBlocks on experience page

Render InfoBlocks on experience page

So, absolutely amazing. We are in a really good spot. I haven't actually refreshed this again. Now it's exactly how it should be according to the design. What we want to do now is the same thing on the experience page. Oh, which doesn't have the data I think that's necessary anymore because we adjusted the info block component. So let's just go into the code and change it because I was promising you earlier on when we were writing all of those functions and we were having to deal with all that data from Strapi that it's going to make our life easier down the road. And I want to now prove it to you. So first of all I can get rid of all of this because we don't need any hard-coded data in here anymore. Instead what I need I need to actually do exactly the same thing that I did on the main page. So I could literally copy exactly this code over here. I just have to bring it in, so we have to bring fetch data from Strapi and process info blocks like that. We don't need the image component…

Contents