๐—จ๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—ฅ๐—ฒ๐—ฎ๐—ฐ๐˜ ๐—–๐—ผ๐—บ๐—ฝ๐—ผ๐—ป๐—ฒ๐—ป๐˜๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ฃ๐—ฟ๐—ผ๐—ฝ๐˜€

Learn React components and props. This is part two of the intro series.

Components are small building blocks for your page. They create buttons and input boxes.

Use .jsx files to define them. Export your components to use them across your app.

You have two options for functions:

Import components into your App.jsx file to see them work.

Props are properties. They pass data between components. Props work like HTML attributes.

Use destructuring to access props. Use {color, make, model} instead of props.color.

Props send data from parent to child. They also send functions from parent to child.

Avoid prop drilling. Prop drilling happens when you pass props through too many levels. It causes unnecessary rerenders.

Try these tasks:

Source: https://dev.to/silaslelei/understanding-components-and-props-94o