WebBeginner

React component

Also known as function component · React components

A reusable unit of React UI, usually a function that receives props and returns a description of what to render.

In the real world

function Greeting({ name }) { return <h1>Hello, {name}</h1>; }

Related

Go a little deeper