DEV Community

Arthur
Arthur

Posted on

React Overview

React is a JavaScript library, not a framework.

  • A library is a tool you use when needed
  • A framework has rules and defines how you build your project

React is used for frontend development.

It helps build what users see in the browser.


Component Architecture

React is based on component architecture.

  • Components are small parts of the interface
  • They can be reused many times
  • This makes code more organized and faster to develop

JavaScript Features in React

React uses core JavaScript features.

  • map is used to render lists
  • filter is used to work with data
  • this was used before, but is less common now

React works with modern JavaScript (ES6+).


Simpler Explanation

React is a tool for building interfaces.

You create small reusable blocks (components) and combine them to build a page.

You stay in control, React just helps display everything efficiently.


Important Correction

The idea that React is mainly based on this, map, and filter is not fully accurate.

  • map is widely used in React
  • filter depends on the situation
  • this is mostly outdated in modern React (hooks are used instead)

Top comments (0)