March 2019
Beginner to intermediate
324 pages
7h 17m
English
Now let's add an About page. Here's how it will look:

Let's navigate to the src folder in our project. Create a new file called About.js. We'll start by importing the react package:
import React from 'react';
Next, we need to write a React component. Typically, we'd create a new class that would inherit from React.Component. However, we'll explore a different coding style that would be better suited to the About page.
For simpler components, where a full class is not needed, we simply use what is known as functional components. Here is how the About component would look when written as a functional component:
export default ...
Read now
Unlock full access