DEV Community


Day(08)100 Days of Code

Toqeer Abbas
Front-end Developer | Self-teaching web development/design, using online resources - Js, ReactJS
・1 min read

React JS


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.

Discussion (1)

mpfdev profile image

I'm just learning and thankful for your input about components.