All the fundamental React.js concepts

Tareq
2 min readNov 4, 2020

1. What is React?

React is a JavaScript library. it is not exactly a framework.

2 .what is the framework?

the framework serves a great purpose framework is not flexible, though some claim to be. A framework usually wants you to code everything a certain way.

  • React is building a user interface (UI) is anything we put in front of users to have them interact with a machine we can use react to describe a UI for it. since web browsers understand javascript, without React or similar libraries we would need to manually build with native web APIs and javascript that is not as easy.
  • React is declared we get to be declarative for HTML UIs that represent dynamic data, not just static data
  • DOM document object model it is the browser programming interface for HTML and XML document that treats them as there structure .the dom API can be used to change document structure style and content

3. Why extremely popular today React?

  • React is a game-changer because those arrows declare the declarative describe UIs and money action or there on their DOM elements.

4. React’s tree reconciliation

  • Working with the DOM API is hard. React gives developers the ability to work with a “virtual” browser that is friendlier than the real browser.
  • React basically acts like your agent who will do the communication with the DOM on your behalf.
  • React is often given the “Just JavaScript” label. This means it has a very small API to learn and after that your JavaScript skills are what make you a better React developer

5. React to the first example

6. React is all about components

  • In React, we describe UIs using components that are reusable, composable, and stateful.

7. Benefits of components

  • make your code more readable and easier to work with. Consider this UI

--

--