DevLearn

Components and Props

From course: React Mastery: From Zero to Hero


### Reusable Components
Components let you split the UI into independent, reusable pieces. A component is essentially a JavaScript function that returns some JSX.

### Passing Data with Props
You can pass data to your components using "props" (short for properties). Props are read-only.

Below, we have a `Greeting` component. Can you pass a different name to it?
Code Editor