Before we get into creating React components from scratch, let's have a look.
Why use React component?
There are so many reasons to use React component, but let's have a look at the most important ones
or commonly used ones.
There are many reasons to use React components in your app.
One of them, or one of the main reasons is that component can make your code more reusable and easier
to maintain.
For example, if you have a button that you want to use in multiple places in your app, you can create
a react component for that button and then use that component wherever you want the button to appear.
This can make your code more dry.
That is, don't repeat yourself and easy to read as well.
And another cool point is that we had componente help you or help us to split up your UI into smaller,
more manageable pieces.
This can make it simpler to understand and work with your UI, especially as your app grows in size.
Well, if you're just getting started with React, you may be wondering how to create your first component.
The next section we are going to or I'm going to show you how to create add component.
Well, after we write our first component, you'll be able to understand these reasons why we use component.
So there is no rush.
Let's move step by step.
The next video.
Let's see how we can create React component.