Go to file
Flarnie Marchan 524a743313 Fix for Flow issues in SimpleCacheProvider (#12942)
* Fix for Flow issues in SimpleCacheProvider

**what is the change?:**
- Fixed some flow errors which were somehow swallowed when CI
originally
- Loosen flow types to avoid issue with recursive loop in Flow; https://github.com/facebook/flow/issues/5870

**why make this change?:**
To unbreak master and unblock other changes we want to make.

**test plan:**
Flow passes!

**issue:**
https://github.com/facebook/react/issues/12941

* Fix lints
2018-05-30 15:31:41 -07:00
.circleci Use --frozen-lockfile for Yarn in CI build (#12914) 2018-05-28 19:52:42 +01:00
.github Reword issue template 2018-01-03 15:58:07 +00:00
fixtures Extend input type check in selection capabilities (#12062) (#12135) 2018-05-30 07:08:21 -04:00
packages Fix for Flow issues in SimpleCacheProvider (#12942) 2018-05-30 15:31:41 -07:00
scripts [scheduler] 4/n Allow splitting out `schedule` in fb-www, prepare to fix polyfill issue internally (#12900) 2018-05-29 13:30:04 -07:00
.babelrc Remove ES3-specific transforms (#12716) 2018-04-30 14:30:37 +01:00
.editorconfig Add insert_final_newline to editorconfig 2015-09-03 13:43:42 -07:00
.eslintignore Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
.eslintrc.js Disable for...of by default, rewrite cases where it matters (#12198) 2018-02-09 16:11:22 +00:00
.flowcoverage flow-coverage-report (#11545) 2018-01-09 11:14:56 -08:00
.gitattributes .gitattributes to ensure LF line endings when we should 2014-01-17 16:25:53 -08:00
.gitignore Run Flow for each renderer separately (#12846) 2018-05-18 02:05:19 +01:00
.mailmap Update .mailmap 2017-09-06 16:58:21 -07:00
.nvmrc Add new docs website (#10896) 2017-09-28 10:18:04 -07:00
.prettierrc.js Use Prettier Config API (#11980) 2018-01-07 11:51:59 +00:00
.watchmanconfig Added a .watchmanconfig file (#11581) 2017-11-16 18:39:03 -08:00
AUTHORS Update authors for v16 (#10861) 2017-09-27 10:24:16 +01:00
CHANGELOG.md Update CHANGELOG for 16.4.0 2018-05-23 18:20:27 -07:00
CODE_OF_CONDUCT.md Add `CODE_OF_CONDUCT.md` (#11512) 2017-11-10 12:17:36 +00:00
CONTRIBUTING.md [Gatsby] "https://facebook.github.io/react/" -> "https://reactjs.org/" (#10970) 2017-09-29 18:43:22 -07:00
LICENSE Change license and remove references to PATENTS 2017-09-25 18:17:44 -07:00
README.md Removed documentation badge from readme.md (#12424) 2018-03-22 15:48:52 +00:00
appveyor.yml Disable Flow on AppVeyor again 2018-05-29 15:47:14 +01:00
dangerfile.js Minor fix params description for addPercent function (#12669) 2018-05-07 17:46:42 -07:00
netlify.toml add netlify toml file (#12350) 2018-05-20 21:03:51 +01:00
package.json Upgrade to Jest 23 (#12894) 2018-05-28 23:03:15 +01:00
yarn.lock Upgrade to Jest 23 (#12894) 2018-05-28 23:03:15 +01:00

README.md

React · GitHub license npm version Coverage Status 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.

Documentation

You can find the React documentation on the website.
It 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:

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

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

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.

Installation

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:

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.