facebook/react


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

https://reactjs.org

License: MIT

Language: JavaScript

Keywords: declarative, frontend, javascript, library, react, ui


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 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.

Installation

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

You can use React as a <script> tag from a CDN, or as a react package on npm.

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:

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

ReactDOM.render(
  <HelloMessage name="Taylor" />,
  document.getElementById('container')
);

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. If you're using React as a <script> tag, read this section on integrating JSX; otherwise, the recommended JavaScript toolchains handle it automatically.

Contributing

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.

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 which have a relatively limited scope. This is a great place to get started.

License

React is MIT licensed.

Project Statistics

Sourcerank 27
Repository Size 141 MB
Stars 136,394
Forks 25,654
Watchers 6,619
Open issues 793
Dependencies 9,666
Contributors 875
Tags 130
Created
Last updated
Last pushed

Top Contributors See all

Paul O’Shannessy Sophie Alpert Dan Abramov Sebastian Markbåge Andrew Clark Jim Brian Vaughn Pete Hunt Cheng Lou Christopher Chedeau Ben Newman Jeff Morrison Timothy Yung Thomas Aylott Dominic Gannaway Nathan Hunzaker Andreas Svensson Brandon Dail Flarnie Marchan Christoph Nakazawa

Packages Referencing this Repo

react-deprecated-libs
React is a JavaScript library for building user interfaces.
Latest release 16.9.0-b.1 - Published - 136K stars
eslint-plugin-react-hooks
ESLint rules for React Hooks
Latest release 2.0.1 - Updated - 136K stars
react-is
Brand checking of React Elements.
Latest release 16.9.0 - Updated - 136K stars
react-dom-factories
React package for DOM factory methods.
Latest release 1.0.2 - Updated - 136K stars
react-devtools-core
Use react-devtools outside of the browser
Latest release 4.1.0 - Updated - 136K stars
create-react-class
Legacy API for creating React components.
Latest release 15.6.3 - Updated - 136K stars
react-test-renderer
React package for snapshot testing.
Latest release 16.9.0 - Updated - 136K stars
scheduler
Cooperative scheduler for the browser environment.
Latest release 0.15.0 - Updated - 136K stars
react-dom
React package for working with the DOM.
Latest release 16.9.0 - Updated - 136K stars
react
React is a JavaScript library for building user interfaces.
Latest release 16.9.0 - Updated - 136K stars
@remax/scheduler
Cooperative scheduler for the browser environment.
Latest release 0.13.6 - Published - 136K stars
react-hot
React is a JavaScript library for building user interfaces.
Latest release 0.0.2 - Updated - 136K stars
@eps1lon/mui-react-events
React is a JavaScript library for building user interfaces.
Latest release 0.1.0 - Published - 136K stars
react-oldie
React is a JavaScript library for building user interfaces.
Latest release 0.14.9-oldie.1 - Published - 136K stars
@eps1lon/mui-react
React is a JavaScript library for building user interfaces.
Latest release 0.0.0-e672ba2f5 - Published - 136K stars
@alexreardon/eslint-plugin-react-hooks
ESLint rules for React Hooks
Latest release 1.6.0 - Published - 136K stars
react-is-esm
Brand checking of React Elements.
Latest release 16.8.4-alpha.0 - Published - 136K stars
react-dom-esm
React package for working with the DOM.
Latest release 16.8.4-alpha.4 - Updated - 136K stars
@eps1lon/mui-react-dom
React package for working with the DOM.
Latest release 0.0.0-e672ba2f5 - Published - 136K stars
@hsjs/react-cache
A basic cache for React applications
Latest release 0.0.0-alpha.aa94237 - Published - 136K stars

Recent Tags See all

v16.9.0 August 08, 2019
v16.9.0-rc.0 August 05, 2019
v16.9.0-alpha.0 April 03, 2019
v16.8.6 March 28, 2019
v16.8.5 March 22, 2019
v16.8.5 March 22, 2019
v16.8.4 March 05, 2019
v16.8.3 February 21, 2019
v16.8.2 February 14, 2019
v16.8.1 February 06, 2019
v16.8.0 February 06, 2019
v16.8.0-alpha.1 January 15, 2019
v16.7.0 December 20, 2018
v0.0.0-88ada9819 November 29, 2018
v16.7.0-alpha.1 November 13, 2018

Interesting Forks See all

zilverline/react-tap-event-plugin
Instant TapEvents for React
JavaScript - Other - Last pushed - 1.09K stars - 114 forks
Ephem/react-lightyear
A Suspense enabled React server renderer
JavaScript - MIT - Last pushed - 117 stars
KieSun/react-interpretation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
JavaScript - MIT - Last pushed - 37 stars - 5 forks
mtsyganov/react
IE6/IE7 compatible React.JS in combination with es5-shims and console-polyfill. React is a JavaSc...
JavaScript - Apache-2.0 - Last pushed - 36 stars - 5 forks
reactkr/react
A declarative, efficient, and flexible JavaScript library for building user interfaces.
JavaScript - BSD-3-Clause - Last pushed - 25 stars - 16 forks

Something wrong with this page? Make a suggestion

Last synced: 2019-04-25 05:45:32 UTC

Login to resync this repository