React JS
Components
Components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and returns HTML via a render function.
Today I learn why we used components in react js.
Basically Components are used to repeat the same type of code in an easy way.
we just need to add components and we can use any number of times the same code.
Actually I am busy with my desktop application project therefore I spend less time for it to learn.
Hope you know all about it. if you have more information about components, then please write in the comment section.
Top comments (1)
I'm just learning and thankful for your input about components.