Skip to content

Commit 0344f7a

Browse files
skratchdotbvaughn
authored andcommitted
1 parent ed41745 commit 0344f7a

27 files changed

+68
-68
lines changed

CHANGELOG.md

+21-21
Large diffs are not rendered by default.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
Want to contribute to React? There are a few things you need to know.
44

5-
We wrote a **[contribution guide](https://facebook.github.io/react/contributing/how-to-contribute.html)** to help you get started.
5+
We wrote a **[contribution guide](https://reactjs.org/contributing/how-to-contribute.html)** to help you get started.

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# [React](https://facebook.github.io/react/) · [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![Coverage Status](https://img.shields.io/coveralls/facebook/react/master.svg?style=flat)](https://coveralls.io/github/facebook/react?branch=master) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
1+
# [React](https://reactjs.org/) · [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![Coverage Status](https://img.shields.io/coveralls/facebook/react/master.svg?style=flat)](https://coveralls.io/github/facebook/react?branch=master) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
22

33
React is a JavaScript library for building user interfaces.
44

55
* **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.
66
* **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.
77
* **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](https://facebook.github.io/react-native/).
88

9-
[Learn how to use React in your own project](https://facebook.github.io/react/docs/getting-started.html).
9+
[Learn how to use React in your own project](https://reactjs.org/docs/getting-started.html).
1010

1111
## Examples
1212

13-
We have several examples [on the website](https://facebook.github.io/react/). Here is the first one to get you started:
13+
We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started:
1414

1515
```jsx
1616
class HelloMessage extends React.Component {
@@ -27,19 +27,19 @@ ReactDOM.render(
2727

2828
This example will render "Hello John" into a container on the page.
2929

30-
You'll notice that we used an HTML-like syntax; [we call it JSX](https://facebook.github.io/react/docs/introducing-jsx.html). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. We recommend using [Babel](https://babeljs.io/) with a [React preset](https://babeljs.io/docs/plugins/preset-react/) to convert JSX into native JavaScript for browsers to digest.
30+
You'll notice that we used an HTML-like syntax; [we call it JSX](https://reactjs.org/docs/introducing-jsx.html). JSX is not required to use React, but it makes code more readable, and writing it feels like writing HTML. We recommend using [Babel](https://babeljs.io/) with a [React preset](https://babeljs.io/docs/plugins/preset-react/) to convert JSX into native JavaScript for browsers to digest.
3131

3232
## Installation
3333

34-
React is available as the `react` package on [npm](https://www.npmjs.com/). It is also available on a [CDN](https://facebook.github.io/react/docs/installation.html#using-a-cdn).
34+
React is available as the `react` package on [npm](https://www.npmjs.com/). It is also available on a [CDN](https://reactjs.org/docs/installation.html#using-a-cdn).
3535

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

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

40-
* [Trying Out React](https://facebook.github.io/react/docs/installation.html#trying-out-react)
41-
* [Creating a New Application](https://facebook.github.io/react/docs/installation.html#creating-a-new-application)
42-
* [Adding React to an Existing Application](https://facebook.github.io/react/docs/installation.html#adding-react-to-an-existing-application)
40+
* [Trying Out React](https://reactjs.org/docs/installation.html#trying-out-react)
41+
* [Creating a New Application](https://reactjs.org/docs/installation.html#creating-a-new-application)
42+
* [Adding React to an Existing Application](https://reactjs.org/docs/installation.html#adding-react-to-an-existing-application)
4343

4444
## Contributing
4545

@@ -51,7 +51,7 @@ Facebook has adopted a Code of Conduct that we expect project participants to ad
5151

5252
### Contributing Guide
5353

54-
Read our [contributing guide](https://facebook.github.io/react/contributing/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
54+
Read our [contributing guide](https://reactjs.org/contributing/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
5555

5656
### Beginner Friendly Bugs
5757

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# React Documentation & Website
22

3-
## [Read the React Documentation](https://facebook.github.io/react/)
3+
## [Read the React Documentation](https://reactjs.org/)
44

55
This folder is not the right place to *read* the documentation.
66

7-
Instead, head over [to the React website](https://facebook.github.io/react/) to read it.
7+
Instead, head over [to the React website](https://reactjs.org/) to read it.
88

99
This folder only contains the source code for the website.
1010

docs/_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
name: React
33
description: A JavaScript library for building user interfaces
4-
url: https://facebook.github.io
5-
baseurl: /react
4+
url: https://reactjs.org/
5+
baseurl: /
66
permalink: /blog/:year/:month/:day/:title.html
77
paginate_path: /blog/page:num/
88
paginate: 5

docs/_layouts/default.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<meta name="viewport" content="width=device-width, initial-scale=1">
2323
<meta property="og:title" content="{{ title }}">
2424
<meta property="og:type" content="{{ type }}">
25-
<meta property="og:url" content="https://facebook.github.io/react{{ page.url }}">
26-
<meta property="og:image" content="https://facebook.github.io/react/img/logo_og.png">
25+
<meta property="og:url" content="https://reactjs.org/{{ page.url }}">
26+
<meta property="og:image" content="https://reactjs.org/img/logo_og.png">
2727
<meta property="og:description" content="{{ description }}">
2828
<meta property="fb:app_id" content="623268441017527">
2929

docs/_posts/2015-07-03-react-v0.14-beta-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This week, many people in the React community are at [ReactEurope](https://www.r
77

88
With React 0.14, we're continuing to let React mature and to make minor changes as the APIs continue to settle down. I'll talk only about the two largest changes in this blog post; when we publish the final release we'll be sure to update all of our documentation and include a full changelog.
99

10-
You can install the new beta with `npm install [email protected]` and `npm install [email protected]`. As mentioned in [Deprecating react-tools](https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html), we're no longer updating the react-tools package so this release doesn't include a new version of it. Please try the new version out and let us know what you think, and please do file issues on our GitHub repo if you run into any problems.
10+
You can install the new beta with `npm install [email protected]` and `npm install [email protected]`. As mentioned in [Deprecating react-tools](https://reactjs.org/blog/2015/06/12/deprecating-jstransform-and-react-tools.html), we're no longer updating the react-tools package so this release doesn't include a new version of it. Please try the new version out and let us know what you think, and please do file issues on our GitHub repo if you run into any problems.
1111

1212
## Two Packages
1313

docs/_posts/2016-07-11-introducing-reacts-error-code-system.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ In order to make debugging in production easier, we're introducing an Error Code
1313

1414
While we hope you don't see errors often, you can see how it works [here](/docs/error-decoder.html?invariant=109&args[]=Foo). This is what the same error from above will look like:
1515

16-
> Minified React error #109; visit https://facebook.github.io/react/docs/error-decoder.html?invariant=109&args[]=Foo for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
16+
> Minified React error #109; visit https://reactjs.org/docs/error-decoder.html?invariant=109&args[]=Foo for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
1717
1818
We do this so that the developer experience is as good as possible, while also keeping the production bundle size as small as possible. This feature shouldn't require any changes on your side — use the `min.js` files in production or bundle your application code with `process.env.NODE_ENV === 'production'` and you should be good to go!

docs/_posts/2017-09-26-react-v16.0.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ See the [documentation for `ReactDOMServer`](/docs/react-dom-server.html) for mo
7171

7272
### Support for custom DOM attributes
7373

74-
Instead of ignoring unrecognized HTML and SVG attributes, React will now [pass them through to the DOM](https://facebook.github.io/react/blog/2017/09/08/dom-attributes-in-react-16.html). This has the added benefit of allowing us to get rid of most of React's attribute whitelist, resulting in reduced file sizes.
74+
Instead of ignoring unrecognized HTML and SVG attributes, React will now [pass them through to the DOM](https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html). This has the added benefit of allowing us to get rid of most of React's attribute whitelist, resulting in reduced file sizes.
7575

7676
### Reduced file size
7777

@@ -168,7 +168,7 @@ React 16 includes a number of small breaking changes. These only affect uncommon
168168

169169
* There is no `react/lib/*` and `react-dom/lib/*` anymore. Even in CommonJS environments, React and ReactDOM are precompiled to single files (“flat bundles”). If you previously relied on undocumented React internals, and they don’t work anymore, let us know about your specific case in a new issue, and we’ll try to figure out a migration strategy for you.
170170
* There is no `react-with-addons.js` build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.
171-
* The deprecations introduced in 15.x have been removed from the core package. `React.createClass` is now available as `create-react-class`, `React.PropTypes` as `prop-types`, `React.DOM` as `react-dom-factories`, `react-addons-test-utils` as `react-dom/test-utils`, and shallow renderer as `react-test-renderer/shallow`. See [15.5.0](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html) and [15.6.0](https://facebook.github.io/react/blog/2017/06/13/react-v15.6.0.html) blog posts for instructions on migrating code and automated codemods.
171+
* The deprecations introduced in 15.x have been removed from the core package. `React.createClass` is now available as `create-react-class`, `React.PropTypes` as `prop-types`, `React.DOM` as `react-dom-factories`, `react-addons-test-utils` as `react-dom/test-utils`, and shallow renderer as `react-test-renderer/shallow`. See [15.5.0](https://reactjs.org/blog/2017/04/07/react-v15.5.0.html) and [15.6.0](https://reactjs.org/blog/2017/06/13/react-v15.6.0.html) blog posts for instructions on migrating code and automated codemods.
172172
* The names and paths to the single-file browser builds have changed to emphasize the difference between development and production builds. For example:
173173
* `react/dist/react.js``react/umd/react.development.js`
174174
* `react/dist/react.min.js``react/umd/react.production.min.js`

docs/docs/cross-origin-errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permalink: docs/cross-origin-errors.html
88
>
99
> The following section applies only to the development mode of React. Error handling in production mode is done with regular try/catch statements.
1010
11-
In [development mode](https://facebook.github.io/react/docs/optimizing-performance.html), React uses a global `error` event handler to preserve the "pause on exceptions" behavior of browser DevTools. It also logs errors to the developer console.
11+
In [development mode](https://reactjs.org/docs/optimizing-performance.html), React uses a global `error` event handler to preserve the "pause on exceptions" behavior of browser DevTools. It also logs errors to the developer console.
1212

1313
If an error is thrown from a [different origin](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) the browser will mask its details and React will not be able to log the original error message. This is a security precaution taken by browsers to avoid leaking sensitive information.
1414

docs/tutorial/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ We recommend following [these instructions](http://babeljs.io/docs/editors) to c
7171

7272
### Help, I'm Stuck!
7373
74-
If you get stuck, check out the [community support resources](https://facebook.github.io/react/community/support.html). In particular, [Reactiflux chat](/community/support.html#reactiflux-chat) is a great way to get quick help. If you don't get a good answer anywhere, please file an issue, and we'll help you out.
74+
If you get stuck, check out the [community support resources](https://reactjs.org/community/support.html). In particular, [Reactiflux chat](/community/support.html#reactiflux-chat) is a great way to get quick help. If you don't get a good answer anywhere, please file an issue, and we'll help you out.
7575
7676
With this out of the way, let's get started!
7777

docs/warnings/unknown-prop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The unknown-prop warning will fire if you attempt to render a DOM element with a
77

88
There are a couple of likely reasons this warning could be appearing:
99

10-
1. Are you using `{...this.props}` or `cloneElement(element, this.props)`? Your component is transferring its own props directly to a child element (eg. https://facebook.github.io/react/docs/transferring-props.html). When transferring props to a child component, you should ensure that you are not accidentally forwarding props that were intended to be interpreted by the parent component.
10+
1. Are you using `{...this.props}` or `cloneElement(element, this.props)`? Your component is transferring its own props directly to a child element (eg. https://reactjs.org/docs/transferring-props.html). When transferring props to a child component, you should ensure that you are not accidentally forwarding props that were intended to be interpreted by the parent component.
1111

1212
2. You are using a non-standard DOM attribute on a native DOM node, perhaps to represent custom data. If you are trying to attach custom data to a standard DOM element, consider using a custom data attribute as described [on MDN](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes).
1313

fixtures/dom/src/components/Header.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Header extends React.Component {
3434
<div className="header__inner">
3535
<span className="header__logo">
3636
<img
37-
src="https://facebook.github.io/react/img/logo.svg"
37+
src="https://reactjs.org/img/logo.svg"
3838
alt=""
3939
width="32"
4040
height="32"

packages/react-art/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"bugs": {
1717
"url": "https://github.com/facebook/react/issues"
1818
},
19-
"homepage": "https://facebook.github.io/react/",
19+
"homepage": "https://reactjs.org/",
2020
"dependencies": {
2121
"create-react-class": "^15.6.2",
2222
"fbjs": "^0.8.16",

packages/react-dom/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": {
1212
"url": "https://github.com/facebook/react/issues"
1313
},
14-
"homepage": "https://facebook.github.io/react/",
14+
"homepage": "https://reactjs.org/",
1515
"dependencies": {
1616
"fbjs": "^0.8.16",
1717
"loose-envify": "^1.1.0",

packages/react-test-renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"bugs": {
1414
"url": "https://github.com/facebook/react/issues"
1515
},
16-
"homepage": "https://facebook.github.io/react/",
16+
"homepage": "https://reactjs.org/",
1717
"dependencies": {
1818
"fbjs": "^0.8.16",
1919
"object-assign": "^4.1.1"

packages/react/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# react
22

3-
An npm package to get you immediate access to [React](https://facebook.github.io/react/),
3+
An npm package to get you immediate access to [React](https://reactjs.org/),
44
without also requiring the JSX transformer. This is especially useful for cases where you
55
want to [`browserify`](https://github.com/substack/node-browserify) your module using
66
`React`.

packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"react"
66
],
77
"version": "16.0.0",
8-
"homepage": "https://facebook.github.io/react/",
8+
"homepage": "https://reactjs.org/",
99
"bugs": "https://github.com/facebook/react/issues",
1010
"license": "MIT",
1111
"files": [

scripts/error-codes/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The error code system substitutes React's invariant error messages with error IDs to provide a better debugging support in production. Check out the blog post [here](https://facebook.github.io/react/blog/2016/07/11/introducing-reacts-error-code-system.html).
1+
The error code system substitutes React's invariant error messages with error IDs to provide a better debugging support in production. Check out the blog post [here](https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html).
22

33
## Note for cutting a new React release
44
1. For each release, we run `yarn build -- --extract-errors` to update the error codes before calling `yarn build`. The build step uses `codes.json` for a production (minified) build; there should be no warning like `Error message "foo" cannot be found` for a successful release.
@@ -11,4 +11,4 @@ The error code system consists of 5 parts:
1111
- [`extract-errors.js`](https://github.com/facebook/react/blob/master/scripts/error-codes/extract-errors.js) is an node script that traverses our codebase and updates `codes.json`. Use it by calling `yarn build -- --extract-errors`.
1212
- [`replace-invariant-error-codes.js`](https://github.com/facebook/react/blob/master/scripts/error-codes/replace-invariant-error-codes.js) is a Babel pass that rewrites error messages to IDs for a production (minified) build.
1313
- [`reactProdInvariant.js`](https://github.com/facebook/react/blob/master/src/shared/utils/reactProdInvariant.js) is the replacement for `invariant` in production. This file gets imported by the Babel plugin and should _not_ be used manually.
14-
- [`ErrorDecoderComponent`](https://github.com/facebook/react/blob/master/docs/_js/ErrorDecoderComponent.js) is a React component that lives at https://facebook.github.io/react/docs/error-decoder.html. This page takes parameters like `?invariant=109&args[]=Foo` and displays a corresponding error message. Our documentation site's [`Rakefile`](https://github.com/facebook/react/blob/master/docs/Rakefile#L64-L69) has a task (`bundle exec rake copy_error_codes`) for adding the latest `codes.json` to the error decoder page. This task is included in the default `bundle exec rake release` task.
14+
- [`ErrorDecoderComponent`](https://github.com/facebook/react/blob/master/docs/_js/ErrorDecoderComponent.js) is a React component that lives at https://reactjs.org/docs/error-decoder.html. This page takes parameters like `?invariant=109&args[]=Foo` and displays a corresponding error message. Our documentation site's [`Rakefile`](https://github.com/facebook/react/blob/master/docs/Rakefile#L64-L69) has a task (`bundle exec rake copy_error_codes`) for adding the latest `codes.json` to the error decoder page. This task is included in the default `bundle exec rake release` task.

scripts/release-manager/Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ git commit -am 'Rebuild the website'
457457
git push
458458
```
459459

460-
Now open https://facebook.github.io/react/, give it a few minutes, refresh, and behold.
460+
Now open https://reactjs.org/, give it a few minutes, refresh, and behold.
461461

462462
Don’t forget to switch to `master` for the future development.
463463

0 commit comments

Comments
 (0)