Exercise
Last updated
Last updated
In this exercise, you have to create and render the Title component of the app.
Create a new file named Title.js
and create a simple component that is just a function that returns a React element.
Note that you have to import React
as <h1>
will be transformed into React.createElement('h1')
Title
componentIn your App.js
, you can use your Title
component by importing it and simply adding the JSX call in your render function: