Building large scale application is more difficult than many people understand or expect. Join me in this long running series where I set out to duplicate one of the most popular social media platforms ever creating using Java, Spring Boot, Spring Security, PostgreSQL data, React JS web application framework and more.
In this episode we start working on the first tab inside of the Explore page which is the For You tab. We start out by creating a new component to contain the logic for switching between tabs, and create another new component specifically for the For You content. Inside the For You content component we set up a simple skeleton which we will be filling out as episodes progress in the future. After this we needed to setup the ability to fetch the data that is displayed on the for you tab, so we created a new async thunk in the explore slice that asynchronously fetches all the data from the different API’s we setup in previous videos. From here we used the thunk inside of the explore for you component to fetch the data, and verified everything was working as expected.