In this tutorial we'll learn how to build a React application that consumes a third-party REST API using the fetch() API. We'll also use Bootstrap 4 to style the UI.
We'll consume a third-party API available from this link.
We'll also see some basics of React such as:
The state object to hold the state of the app and the setState() method to mutate the state. The componentDidMount() life-cycle method for running code when the component is mounted in the DOM. How to embed JavaScript expressions in JSX using curly braces. How to render lists of data using the map() method and JSX and conditionally render DOM elements using the logical && operator.
React is the most popular UI library for building user interfaces built and used internally by Facebook.
React has many features such as:
Declarative: React makes it easy to build interactive UIs by creating views for each state in your application, …
[Read more]