Coding task · JavaScript and React course · Module 1: React Basics

Practice: Your first App component

A component is a function that returns JSX. Put the heading in an <h1> and the greeting in a <p>, both inside one parent element such as a <div>.

Task

Create a simple React App component that displays a heading and a welcome paragraph.