In React, Components are reusable bits of code and have a similar purpose to JavaScript functions. The only difference is these work in isolation and returns HTML via a render function. There are two types of components such as Class components and Function components.
If you are looking for an online course to learn React Js, check out this React JS Course by Intellipaat.
Also, watch this video to understand: