+ 3

What do they mean by components in React

I just finished my course on React, bit trust me am still having a difficulty.. Please what is the meaning of COMPONENTS in react. 🙏🙏🙏

25th Dec 2020, 8:06 PM
Larsun
Larsun - avatar
2 Answers
+ 6
Components in react are nothing but JavaScript functions which return HTML. Consider Sololearn for example, you have a profile section which could be a component, then you have your skills, activity and challenges section which are other components and so on. You basically divide a big application into smaller reusable parts which are called components.
25th Dec 2020, 8:29 PM
Avinesh
Avinesh - avatar
+ 1
In short words, it's a single item of the page, could be nav bar, header, a form, a list...
25th Dec 2020, 10:35 PM
Stanislav Stasyuk
Stanislav Stasyuk - avatar