10 vital topics in React Js

Nahid Murad Abir
4 min readNov 4, 2020

Okay, let’s begin….

What is React actually?

React is something that can react, as simple as that. 🤐

Let’s come to the point :p.

React JS basically a JavaScript library that is used to build interactive web development on websites. But if you’re not familiar with JavaScript or JavaScript libraries, that’s not a helpful definition. So let’s take a step back and deal with those terms first.

want to know about javascript? then go for it ‘’Check it out’’.

Why Do JavaScript Developers Use React JS?

Respond is a JavaScript library that helps to interact with sites and web applications, UIs are the assortment of on-screen menus, search bars, catches, and whatever else somebody connects with to USE a site or application.

Note: mass user always asks "is React JS frontend or backend?" The accurate answer is: unquestionably front-end. You can keep this straight by recollecting the "on-screen" part of UIs—React is utilized solely for "customer side" programming which makes React JS a frontend library.

React accompanies two key highlights that add to its allure for JavaScript engineers:

JSX

Virtual DOM

To improve comprehension of React JS and why you should utilize it, how about we investigate both

The React JS Ecosystem

React JS is sometimes mistaken for a full-blown framework since its robust ecosystem and extensibility make it such a versatile JavaScript library. Remember one thing, that is when you use React JS to build some interactive website and web application UIs then confirmed that u have to access:

  • React code snippets and components for building blocks of React code which are used to create some specific part for the user's interfaces.
  • JSX to directly manipulate your virtual DOM.
  • A Virtual DOM also improves your website’s performance.

Should I Learn React JS?

If you want to work as a front-end web developer that means building user interfaces then the answer is YES! a big YES. don't be hesitate just go for it.

Finding success in web development, that means using the right tools to make your code as effective and efficient as possible. And when it comes to building user interfaces — React JS is a tool and u should have take a advantage from it.

If you think that you are ready to React plus other initial skills like JavaScript, HTML, and CSS then you can welcome to start from today to have a look react documentation.

JSX

JSX is a short form of JavaScript extension which is a React extension that makes it easy for web developers to modify their DOM by using simple, HTML-style code. As if React JS browser support extends to all modern web browsers — JSX is compatible with any browser platform you might be working with.

Example:

return(){
const jsx = <h1>Header with JSX</h1>;
}

Virtual DOM

DOM is the process that makes things “change” on screen without a user having to manually refresh a page.

If you’re not using React JS (and JSX), your website will use HTML to update its DOM. This works fine for simple and static websites. But if you go for a dynamic thing then comes to some problems because dynamic websites that involve heavy user interaction which can become a major problem.

However, if a developer uses JSX to manipulate even update its DOM, React JS creates something which is called actually a Virtual DOM. The Virtual DOM is a copy of the site’s DOM, and React JS uses this copy to see what parts of the actual DOM need to change when an event fired.

State

A state in JavaScript is known as an object that can store a component’s data and identify the behaviors of the components. Because of the state. as if the state is dynamic and it enables a component to keep track of changing information in between renders and for it to be some interactive thing and dynamic interface.

React Component

React has an amazing function which is called components. The component also a javascript function. That is way to component has a specific structure and you write code inside a component. There are two kind of components, one is a functional component and another one is class-based Component. Class-based component using render() for re-rendering inside code. A functional component using without render() method. It directly returns javascript JSX. The component is a javascript function because react can not understand without javascript. So that component has a specific structure and we write code inside a component. The functional and class component that’s two types of components can be used by react js but the update component style is Functional Component.class component using render() for re-rendering inside code. A functional component using without render() method. It directly returns javascript JSX.

Events

React can execute events like javascript but have some rolls. Every event needs to camel case like a belong example. Even handlers have to function. When users click the event working this function. Sometimes need to declare a function or state an arrow function, it depends on the situation.

--

--

Nahid Murad Abir

Web programmer, enthusiasts developer who always build new thing. learn new technology is a passion! Destination to be a good human!!