A declarative, efficient, and flexible JavaScript library for building user interfaces. https://reactjs.org/

Januda Bethmin f74c5ccf94 feat(hyperlink): added a hyperlink to Node in README.md file (#28940) недель назад: 2
.circleci 915b914b3a Bump React 19 beta to RC (#29060) недель назад: 2
.codesandbox 88313ffd57 Codesandbox: upgrade to Node.js 18 (#26330) 1 год назад
.github ecddf3cb07 Add issue template for React Compiler недель назад: 2
compiler ff60b11b1c Add packageManager fields for Corepack compat (#29114) недель назад: 2
fixtures da6ba53b10 [UMD] Remove umd builds (#28735) 1 месяц назад
packages af3a55e67f Lazily freeze in case anything in the currently initializing chunk is blocked (#29139) недель назад: 2
scripts 26f2496093 Remove 2 no longer existing files from inlinedHostConfig (#29027) недель назад: 2
.editorconfig 1af2a10891 https link to editorconfig.org (#18421) 4 лет назад
.eslintignore c93c30f9d4 Fix ESLint and Prettier configs for React Compiler (#29073) недель назад: 2
.eslintrc.js da6ba53b10 [UMD] Remove umd builds (#28735) 1 месяц назад
.gitattributes 8abca77381 .gitattributes to ensure LF line endings when we should 10 лет назад
.gitignore 96c5846610 feat[devtools]: add package for fusebox integration (#28553) 1 месяц назад
.mailmap ebb2253428 updates mailmap entries (#19824) 3 лет назад
.nvmrc 4eb241a94f Bump nvmrc to Node.js v18 (#28707) 2 месяцев назад
.prettierignore c93c30f9d4 Fix ESLint and Prettier configs for React Compiler (#29073) недель назад: 2
.prettierrc.js 8f7dd5592b [DevTools] Check in `frontend.d.ts` for react-devtools-fusebox, include in build output (#28970) 1 месяц назад
.watchmanconfig 29b4559635 .watchmanconfig must be valid json (#16118) 4 лет назад
CHANGELOG-canary.md 0a44435674 Add useActionState to CHANGELOG-canary.md (#28632) 2 месяцев назад
CHANGELOG.md 4ddff7355f Add changelog for 18.3.1 (#28932) 1 месяц назад
CODE_OF_CONDUCT.md 7a227276e6 revert last grammatical edit (#25067) 1 год назад
CONTRIBUTING.md 2d80a0cd69 Fix: Updated link in CONTRIBUTING (#25381) 1 год назад
LICENSE 9cdf8a99ed [Codemod] Update copyright header to Meta (#25315) 1 год назад
README.md f74c5ccf94 feat(hyperlink): added a hyperlink to Node in README.md file (#28940) недель назад: 2
ReactVersions.js 915b914b3a Bump React 19 beta to RC (#29060) недель назад: 2
SECURITY.md 1b6e269751 Create SECURITY.md (#15784) 4 лет назад
babel.config.js 952aa74f8e Upgrade tests to use react/jsx-runtime (#28252) 3 месяцев назад
dangerfile.js c7b1ae5a9e [Tooling] Update critical artifact list (#28966) 1 месяц назад
netlify.toml da6ba53b10 [UMD] Remove umd builds (#28735) 1 месяц назад
package.json ff60b11b1c Add packageManager fields for Corepack compat (#29114) недель назад: 2
yarn.lock 04b058868c Upgrade jest and jsdom (#29026) недель назад: 3

README.md

React · GitHub license npm version CircleCI Status PRs Welcome

React is a JavaScript library for building user interfaces.

  • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
  • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep the state out of the DOM.
  • Learn Once, Write Anywhere: We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.

Learn how to use React in your project.

Installation

React has been designed for gradual adoption from the start, and you can use as little or as much React as you need:

Documentation

You can find the React documentation on the website.

Check out the Getting Started page for a quick overview.

The documentation is divided into several sections:

You can improve it by sending pull requests to this repository.

Examples

We have several examples on the website. Here is the first one to get you started:

import { createRoot } from 'react-dom/client';

function HelloMessage({ name }) {
  return <div>Hello {name}</div>;
}

const root = createRoot(document.getElementById('container'));
root.render(<HelloMessage name="Taylor" />);

This example will render "Hello Taylor" into a container on the page.

You'll notice that we used an HTML-like syntax; we call it JSX. JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML.

Contributing

The main purpose of this repository is to continue evolving React core, making it faster and easier to use. Development of React happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving React.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.

Good First Issues

To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.

License

React is MIT licensed.