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

Practice: Component file structure

A component file usually has three parts: imports at the top, the component definition in the middle and the export at the bottom.

Task

In App.jsx, create the basic structure of a component: a React import, a functional App component that returns JSX, and a default export (export default).