react 0,38,80,181,86,0,155,0 editorconfig flowtype travis-ci grunt gulp npm

A declarative, efficient, and flexible JavaScript library for building user interfaces.

1 month after BSD-3-Clause

React · CircleCI Status Coverage Status npm version 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 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 own project.


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

class HelloMessage extends React.Component {
  render() {
    return <div>Hello {}</div>;

  <HelloMessage name="John" />,

This example will render "Hello John" 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. We recommend using Babel with a React preset to convert JSX into native JavaScript for browsers to digest.


React is available as the react package on npm. It is also available on a CDN.

React is flexible and can be used in a variety of projects. You can create new apps with it, but you can also gradually introduce it into an existing codebase without doing a rewrite.

The recommended way to install React depends on your project. Here you can find short guides for the most common scenarios:


The main purpose of this repository is to continue to evolve 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.

Beginner Friendly Bugs

To help you get your feet wet and get you familiar with our contribution process, we have a list of beginner friendly bugs that contain bugs which are fairly easy to fix. This is a great place to get started.


React is BSD licensed. We also provide an additional patent grant.

React documentation is Creative Commons licensed.

Examples provided in this repository and in the documentation are separately licensed.

Related Repositories



A collection of awesome things regarding React ecosystem. ...



Catalog of React Components & Libraries ...



A primer for building web applications with React. ...



React native components collect display ...



A collection of awesome React libraries, resources and shiny things. ...

Top Contributors

zpao spicyj jimfb sebmarkbage petehunt gaearon chenglou vjeux benjamn jeffmo subtleGradient yungsters syranide cpojer marocchino kohei-takata chicoxyzzy mcsheffrey bgw keyanzhang koba04 hellendag joshduck acdlite fisherwebdev fabiomcosta jordwalke nhunzaker Daniel15 arkist Aweary crm416


package version
dev aliasify ^2.0.0
art ^0.10.1
async ^1.5.0
babel-cli ^6.6.5
babel-core ^6.0.0
babel-eslint ^7.1.0
babel-jest 20.1.0-delta.1
babel-plugin-check-es2015-constants ^6.5.0
babel-plugin-external-helpers ^6.22.0
babel-plugin-syntax-trailing-function-commas ^6.5.0
babel-plugin-transform-async-to-generator ^6.22.0
babel-plugin-transform-class-properties ^6.11.5
babel-plugin-transform-es2015-arrow-functions ^6.5.2
babel-plugin-transform-es2015-block-scoped-functions ^6.5.0
babel-plugin-transform-es2015-block-scoping ^6.23.0
babel-plugin-transform-es2015-classes ^6.5.2
babel-plugin-transform-es2015-computed-properties ^6.5.2
babel-plugin-transform-es2015-destructuring ^6.5.0
babel-plugin-transform-es2015-for-of ^6.5.2
babel-plugin-transform-es2015-literals ^6.5.0
babel-plugin-transform-es2015-modules-commonjs ^6.5.2
babel-plugin-transform-es2015-object-super ^6.5.0
babel-plugin-transform-es2015-parameters ^6.5.0
babel-plugin-transform-es2015-shorthand-properties ^6.5.0
babel-plugin-transform-es2015-spread ^6.5.2
babel-plugin-transform-es2015-template-literals ^6.5.2
babel-plugin-transform-es3-member-expression-literals ^6.5.0
babel-plugin-transform-es3-property-literals ^6.5.0
babel-plugin-transform-object-rest-spread ^6.6.5
babel-plugin-transform-react-jsx-source ^6.8.0
babel-preset-react ^6.5.0
babel-traverse ^6.9.0
babylon 6.15.0
browserify ^13.0.0
bundle-collapser ^1.1.1
chalk ^1.1.3
cli-table ^0.3.1
coffee-script ^1.8.0
core-js ^2.2.1
coveralls ^2.11.6
create-react-class ^15.6.0
del ^2.0.2
derequire ^2.0.3
escape-string-regexp ^1.0.5
eslint ^3.10.2
eslint-config-fbjs ^1.1.1
eslint-plugin-babel ^3.3.0
eslint-plugin-flowtype ^2.25.0
eslint-plugin-react ^6.7.1
eslint-plugin-react-internal file:./eslint-rules
fbjs ^0.8.9
fbjs-scripts ^0.6.0
filesize ^3.5.6
flow-bin ^0.50.0
git-branch ^0.3.0
glob ^6.0.4
glob-stream ^6.1.0
gzip-js ~0.3.2
gzip-size ^3.0.0
http-server ^0.9.0
http2 ^3.3.6
jest 20.1.0-delta.1
jest-config 20.1.0-delta.1
jest-jasmine2 20.1.0-delta.1
jest-matchers 20.1.0-delta.1
jest-runtime 20.1.0-delta.1
loose-envify ^1.1.0
merge-stream ^1.0.0
mime ^1.3.4
minimist ^1.2.0
ncp ^2.0.0
object-assign ^4.1.1
platform ^1.1.0
prettier 1.2.2
prop-types ^15.5.8
rimraf ^2.6.1
rollup ^0.41.6
rollup-plugin-alias ^1.2.1
rollup-plugin-babel ^2.7.1
rollup-plugin-commonjs ^8.0.2
rollup-plugin-inject ^2.0.0
rollup-plugin-node-resolve ^2.0.0
rollup-plugin-replace ^1.1.1
rollup-plugin-uglify ^1.0.1
run-sequence ^1.1.4
stats-analysis ^2.0.0
through2 ^2.0.0
tmp ~0.0.28
typescript ~1.8.10
uglify-js ^2.5.0
uglifyify ^3.0.1
yargs ^6.3.0


-   v15.4.1 zip tar
-   v15.4.0 zip tar
-   v15.4.0-rc.3 zip tar
-   v15.3.2 zip tar
-   v15.3.1 zip tar
-   v15.3.0 zip tar
-   v15.2.1 zip tar
-   v15.2.0 zip tar
-   v15.1.0 zip tar
-   v15.0.2 zip tar
-   v15.0.1 zip tar
-   v15.0.0 zip tar
-   v15.0.0-rc.2 zip tar
-   v15.0.0-rc.1 zip tar
-   v0.14.8 zip tar
-   v0.14.7 zip tar
-   v0.14.6 zip tar
-   v0.14.5 zip tar
-   v0.14.4 zip tar
-   v0.14.3 zip tar
-   v0.14.2 zip tar
-   v0.14.1 zip tar
-   v0.14.0 zip tar
-   v0.14.0-rc1 zip tar
-   v0.14.0-beta3 zip tar
-   v0.14.0-beta2 zip tar
-   v0.14.0-beta1 zip tar
-   v0.13.3 zip tar
-   v0.13.2 zip tar
-   v0.13.1 zip tar