Up to this point we’ve already developed our React application and thereby covered concepts and techniques of a modern React application.

We’ve also learned how to manage data within out React application by using state and techniques for asynchronous data handling. However, up until now the data which is used in out application is coming from inside of our component. In most real-world scenarios the data which is used and processed in the React front-end application is not defined and created in the React application itself. Instead a connection to a back-end is used for data access.

There are many possibilities of back-end technologies which can be used together with your React front-end application. In most cases you’ll end up using a back-end technology which is accessible via web services (e.g. REST web services) or GraphQL.

So before we’re able to extend our React application to retrieve data from a back-end we need to implement a back-end server and make web services available.

Of course you can implement such a back-end from scratch. However there is a much easier approach: using a headless CMS like Strapi.

#react #react-native #reacjs

Modern React From The Beginning - Excursus: Strapi As Back-End
1.35 GEEK