React (also known as React.js or ) is a free and open-source front-end JavaScript library[3] for building user interfaces based on UI components. It is maintained by Meta (formerly Facebook) and a community of individual developers and companies.[4][5][6] React can be used as a base in the development of single-page or mobile applications. However, React is only concerned with state management and rendering that state to the DOM, so creating React applications usually requires the use of additional libraries for routing, as well as certain client-side functionality.
Contents
- 1Basic usage
- 2Notable features
- 2.1Declarative
- 2.2Components
- 2.3Function components
- 2.4Class-based components
- 2.5Virtual DOM
- 2.6Lifecycle methods
- 2.7JSX
- 2.8Architecture beyond HTML
- 2.9React hooks
- 2.9.1Rules of hooks
- 3Common idioms
- 3.1Unidirectional data flow
- 4Future development
- 5History
- 6Licensing
- 7See also
- 8References