This project was created with create-react-app
. Once you have the app cloned, you should run npm install
. You can then run it with npm start
.
Create a react app that render Posts form external API. Through this code along we will cover the best place can call an API inside Component Life cycle.
We will use this fake API to build our App.
const apiURL = 'https://jsonplaceholder.typicode.com/posts/';