Back to course

Functional Components

React JS 0 to Hero: The Complete Guide

Functional Components

In modern React, we build components using functions. They are simpler and easier to test.

jsx function Welcome() { return <h1>Welcome to my App!</h1>; }

export default Welcome;