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

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.