Functional Components

Components are the building blocks of a React application. Functional components are JavaScript functions that return JSX.

function Welcome(props) {
  return <h1>Hello, {props.name}</h1>;
}
  • Stateless and reusable.
  • Can receive props (input data).
← PrevNext →