Fundaments of React.js for Beginners

Dev. Hossain
2 min readMay 8, 2021

React Components

The benefit of react components is we can use them as many as we want. They are editable and the reflection of edition applied in the other same component at a time.

With a bunch of small components, we make the largest one. React components are like JavaScript functions. We make a function with some information and it provides us that information when we call the function.

This premade function we can use many times as we want. And react components are like functions.

React Hooks

React hook is considered a react component. It is a special function. A special word is reserved for react hook and that ‘use’. Every hook starts with the word ‘use’.

The react hooks are very useful and it has endless power with that you can do many things. The hooks are only associated with function components but not with class components.

JSX (JavaScript Extension)

Basically, JSX lets us work with react component, props, and …children function. When you make a component and want to use it.

You have to create the component name with the capitalized word and need to use it as it is named starting with capitalized word.

Any component start with lowercase letter it represent to the build-in component like <div> or <span>.

--

--

Dev. Hossain
0 Followers

An enthusiastic programming language learner. Love to live with coding. Travelling is the addiction. Nature is my mate.