ReactJs — Components
Components are the building blocks of a React application. They can be functional or class-based. Functional components are preferred in modern React due to their simplicity and support for hooks. Each component can accept inputs called props and return JSX.
function Greeting(props) {
return <h1>Hello, {props.name}!</h1>;
}
export default Greeting;