DEV Community

Dharshini E
Dharshini E

Posted on

React Introduction

What is react ?

  • React is a javascript library used to build the UI(user interfaces) especially single-page applications(SPAs)
  • where content updates dynamically without reloading the page.
  • React focuses only on the ** view layer** (UI rending) and makes it easy to build reusable,component-based UIs.
  • React follows a component-based architecture, meaning the UI is divided into ** small, reusable pieces** called components.
  • It uses a Virtual DOM (Document Object Model) for faster rendering and better performance.
  • React is declarative, meaning you describe what you want the UI to look like, and React updates the** real DOM** for you.

*Why React? *

  • Reusable Components
  • Write once, reuse anywhere → saves time and effort.
  • Virtual DOM = Faster Performance
  • React only updates the parts of the page that change, not the entire page.
  • Component-Based Architecture
  • Easier to develop, maintain, and scale large applications.
  • Strong Community & Ecosystem
  • Backed by Facebook and has a huge developer community, with many libraries/tools.
  • Cross-Platform Development
  • With React Native, you can build mobile apps using the same React concepts.
  • SEO Friendly
  • React supports server-side rendering, which helps in better search engine optimization.
  • Easy to Learn for JavaScript Developers
  • If you know JavaScript + ES6, you can quickly pick up React.

Difference between Library and frameworks:
Library:
library is a set of read-made function **that I can call when I **need them, so I control the flow **.
**frameworks:

A framework already has a structure and controls the flow of the application — I just follow its rules.

Top comments (0)