DEV Community

Toqeer Abbas
Toqeer Abbas

Posted on

1 1

Day(08)100 Days of Code

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)

Collapse
 
mpfdev profile image
Matheus 🇧🇷

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

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay