@samitouri / QOS-React-2 / commits / 0344f7ad55

[Gatsby] "https://facebook.github.io/react/" -> "https://reactjs.org/" (#10970)

skratchdot committed Sep 29, 2017 at 21:43 UTC 0344f7ad5542ff068708e51ede3a08c8039cfe54
27 files changed +68 -68
CHANGELOG.md
+21 -21
@@ -25,10 +25,10 @@
25
26 ### New Features
27 * Components can now return arrays and strings from `render`. (Docs coming soon!)
28 -* Improved error handling with introduction of "error boundaries". [Error boundaries](https://facebook.github.io/react/blog/2017/07/26/error-handling-in-react-16.html) are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.
28 +* Improved error handling with introduction of "error boundaries". [Error boundaries](https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html) are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.
29 * First-class support for declaratively rendering a subtree into another DOM node with `ReactDOM.createPortal()`. (Docs coming soon!)
30 * Streaming mode for server side rendering is enabled with `ReactDOMServer.renderToNodeStream()` and `ReactDOMServer.renderToStaticNodeStream()`. ([@aickin](https://github.com/aickin) in [#10425](https://github.com/facebook/react/pull/10425), [#10044](https://github.com/facebook/react/pull/10044), [#10039](https://github.com/facebook/react/pull/10039), [#10024](https://github.com/facebook/react/pull/10024), [#9264](https://github.com/facebook/react/pull/9264), and others.)
31 -* [React DOM now allows passing non-standard attributes](https://facebook.github.io/react/blog/2017/09/08/dom-attributes-in-react-16.html). ([@nhunzaker](https://github.com/nhunzaker) in [#10385](https://github.com/facebook/react/pull/10385), [10564](https://github.com/facebook/react/pull/10564), [#10495](https://github.com/facebook/react/pull/10495) and others)
31 +* [React DOM now allows passing non-standard attributes](https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html). ([@nhunzaker](https://github.com/nhunzaker) in [#10385](https://github.com/facebook/react/pull/10385), [10564](https://github.com/facebook/react/pull/10564), [#10495](https://github.com/facebook/react/pull/10495) and others)
32
33 ### Breaking Changes
34 - There are several changes to the behavior of scheduling and lifecycle methods:
@@ -54,13 +54,13 @@
54 * The server renderer has been completely rewritten, with some improvements:
55 * Server rendering does not use markup validation anymore, and instead tries its best to attach to existing DOM, warning about inconsistencies. It also doesn't use comments for empty components and data-reactid attributes on each node anymore.
56 * Hydrating a server rendered container now has an explicit API. Use `ReactDOM.hydrate` instead of `ReactDOM.render` if you're reviving server rendered HTML. Keep using `ReactDOM.render` if you're just doing client-side rendering.
57 -* When "unknown" props are passed to DOM components, for valid values, React will now render them in the DOM. [See this post for more details.](https://facebook.github.io/react/blog/2017/09/08/dom-attributes-in-react-16.html) ([@nhunzaker](https://github.com/nhunzaker) in [#10385](https://github.com/facebook/react/pull/10385), [10564](https://github.com/facebook/react/pull/10564), [#10495](https://github.com/facebook/react/pull/10495) and others)
58 -* Errors in the render and lifecycle methods now unmount the component tree by default. To prevent this, add [error boundaries](https://facebook.github.io/react/blog/2017/07/26/error-handling-in-react-16.html) to the appropriate places in the UI.
57 +* When "unknown" props are passed to DOM components, for valid values, React will now render them in the DOM. [See this post for more details.](https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html) ([@nhunzaker](https://github.com/nhunzaker) in [#10385](https://github.com/facebook/react/pull/10385), [10564](https://github.com/facebook/react/pull/10564), [#10495](https://github.com/facebook/react/pull/10495) and others)
58 +* Errors in the render and lifecycle methods now unmount the component tree by default. To prevent this, add [error boundaries](https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html) to the appropriate places in the UI.
59
60 ### Removed Deprecations
61
62 - 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.
63 -- 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.
63 +- 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.
64
65 ## 15.6.2 (September 25, 2017)
66
@@ -605,7 +605,7 @@ Each of these changes will continue to work as before with a new warning until t
605
606 - Split the main `react` package into two: `react` and `react-dom`. This paves the way to writing components that can be shared between the web version of React and React Native. This means you will need to include both files and some functions have been moved from `React` to `ReactDOM`.
607 - Addons have been moved to separate packages (`react-addons-clone-with-props`, `react-addons-create-fragment`, `react-addons-css-transition-group`, `react-addons-linked-state-mixin`, `react-addons-perf`, `react-addons-pure-render-mixin`, `react-addons-shallow-compare`, `react-addons-test-utils`, `react-addons-transition-group`, `react-addons-update`, `ReactDOM.unstable_batchedUpdates`).
608 -- Stateless functional components - React components were previously created using React.createClass or using ES6 classes. This release adds a [new syntax](https://facebook.github.io/react/docs/reusable-components.html#stateless-functions) where a user defines a single [stateless render function](https://facebook.github.io/react/docs/reusable-components.html#stateless-functions) (with one parameter: `props`) which returns a JSX element, and this function may be used as a component.
608 +- Stateless functional components - React components were previously created using React.createClass or using ES6 classes. This release adds a [new syntax](https://reactjs.org/docs/reusable-components.html#stateless-functions) where a user defines a single [stateless render function](https://reactjs.org/docs/reusable-components.html#stateless-functions) (with one parameter: `props`) which returns a JSX element, and this function may be used as a component.
609 - Refs to DOM components as the DOM node itself. Previously the only useful thing you can do with a DOM component is call `getDOMNode()` to get the underlying DOM node. Starting with this release, a ref to a DOM component _is_ the actual DOM node. **Note that refs to custom (user-defined) components work exactly as before; only the built-in DOM components are affected by this change.**
610
611
@@ -613,8 +613,8 @@ Each of these changes will continue to work as before with a new warning until t
613
614 - `React.initializeTouchEvents` is no longer necessary and has been removed completely. Touch events now work automatically.
615 - Add-Ons: Due to the DOM node refs change mentioned above, `TestUtils.findAllInRenderedTree` and related helpers are no longer able to take a DOM component, only a custom component.
616 -- The `props` object is now frozen, so mutating props after creating a component element is no longer supported. In most cases, [`React.cloneElement`](https://facebook.github.io/react/docs/react-api.html#cloneelement) should be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.
617 -- Plain objects are no longer supported as React children; arrays should be used instead. You can use the [`createFragment`](https://facebook.github.io/react/docs/create-fragment.html) helper to migrate, which now returns an array.
616 +- The `props` object is now frozen, so mutating props after creating a component element is no longer supported. In most cases, [`React.cloneElement`](https://reactjs.org/docs/react-api.html#cloneelement) should be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.
617 +- Plain objects are no longer supported as React children; arrays should be used instead. You can use the [`createFragment`](https://reactjs.org/docs/create-fragment.html) helper to migrate, which now returns an array.
618 - Add-Ons: `classSet` has been removed. Use [classnames](https://github.com/JedWatson/classnames) instead.
619 - Web components (custom elements) now use native property names. Eg: `class` instead of `className`.
620
@@ -622,9 +622,9 @@ Each of these changes will continue to work as before with a new warning until t
622
623 - `this.getDOMNode()` is now deprecated and `ReactDOM.findDOMNode(this)` can be used instead. Note that in the common case, `findDOMNode` is now unnecessary since a ref to the DOM component is now the actual DOM node.
624 - `setProps` and `replaceProps` are now deprecated. Instead, call ReactDOM.render again at the top level with the new props.
625 -- ES6 component classes must now extend `React.Component` in order to enable stateless function components. The [ES3 module pattern](https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html#other-languages) will continue to work.
625 +- ES6 component classes must now extend `React.Component` in order to enable stateless function components. The [ES3 module pattern](https://reactjs.org/blog/2015/01/27/react-v0.13.0-beta-1.html#other-languages) will continue to work.
626 - Reusing and mutating a `style` object between renders has been deprecated. This mirrors our change to freeze the `props` object.
627 -- Add-Ons: `cloneWithProps` is now deprecated. Use [`React.cloneElement`](https://facebook.github.io/react/docs/react-api.html#cloneelement) instead (unlike `cloneWithProps`, `cloneElement` does not merge `className` or `style` automatically; you can merge them manually if needed).
627 +- Add-Ons: `cloneWithProps` is now deprecated. Use [`React.cloneElement`](https://reactjs.org/docs/react-api.html#cloneelement) instead (unlike `cloneWithProps`, `cloneElement` does not merge `className` or `style` automatically; you can merge them manually if needed).
628 - Add-Ons: To improve reliability, `CSSTransitionGroup` will no longer listen to transition events. Instead, you should specify transition durations manually using props such as `transitionEnterTimeout={500}`.
629
630 ### Notable enhancements
@@ -665,7 +665,7 @@ Each of these changes will continue to work as before with a new warning until t
665
666 #### Breaking Changes
667
668 -- The `react-tools` package and `JSXTransformer.js` browser file [have been deprecated](https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html). You can continue using version `0.13.3` of both, but we no longer support them and recommend migrating to [Babel](http://babeljs.io/), which has built-in support for React and JSX.
668 +- The `react-tools` package and `JSXTransformer.js` browser file [have been deprecated](https://reactjs.org/blog/2015/06/12/deprecating-jstransform-and-react-tools.html). You can continue using version `0.13.3` of both, but we no longer support them and recommend migrating to [Babel](http://babeljs.io/), which has built-in support for React and JSX.
669
670 #### New Features
671
@@ -765,9 +765,9 @@ Each of these changes will continue to work as before with a new warning until t
765
766 #### New Features
767
768 -* Support for using ES6 classes to build React components; see the [v0.13.0 beta 1 notes](https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html) for details.
768 +* Support for using ES6 classes to build React components; see the [v0.13.0 beta 1 notes](https://reactjs.org/blog/2015/01/27/react-v0.13.0-beta-1.html) for details.
769 * Added new top-level API `React.findDOMNode(component)`, which should be used in place of `component.getDOMNode()`. The base class for ES6-based components will not have `getDOMNode`. This change will enable some more patterns moving forward.
770 -* Added a new top-level API `React.cloneElement(el, props)` for making copies of React elements – see the [v0.13 RC2 notes](https://facebook.github.io/react/blog/2015/03/03/react-v0.13-rc2.html#react.cloneelement) for more details.
770 +* Added a new top-level API `React.cloneElement(el, props)` for making copies of React elements – see the [v0.13 RC2 notes](https://reactjs.org/blog/2015/03/03/react-v0.13-rc2.html#react.cloneelement) for more details.
771 * New `ref` style, allowing a callback to be used in place of a name: `<Photo ref={(c) => this._photo = c} />` allows you to reference the component with `this._photo` (as opposed to `ref="photo"` which gives `this.refs.photo`).
772 * `this.setState()` can now take a function as the first argument for transactional state updates, such as `this.setState((state, props) => ({count: state.count + 1}));` – this means that you no longer need to use `this._pendingState`, which is now gone.
773 * Support for iterators and immutable-js sequences as children.
@@ -781,7 +781,7 @@ Each of these changes will continue to work as before with a new warning until t
781
782 #### New Features
783
784 -* [`React.addons.createFragment` was added](https://facebook.github.io/react/docs/create-fragment.html) for adding keys to entire sets of children.
784 +* [`React.addons.createFragment` was added](https://reactjs.org/docs/create-fragment.html) for adding keys to entire sets of children.
785
786 #### Deprecations
787
@@ -1007,7 +1007,7 @@ Each of these changes will continue to work as before with a new warning until t
1007
1008 #### New Features
1009 * Added warnings to help migrate towards descriptors
1010 -* Made it possible to server render without React-related markup (`data-reactid`, `data-react-checksum`). This DOM will not be mountable by React. [Read the docs for `React.renderComponentToStaticMarkup`](https://facebook.github.io/react/docs/top-level-api.html#react.rendercomponenttostaticmarkup)
1010 +* Made it possible to server render without React-related markup (`data-reactid`, `data-react-checksum`). This DOM will not be mountable by React. [Read the docs for `React.renderComponentToStaticMarkup`](https://reactjs.org/docs/top-level-api.html#react.rendercomponenttostaticmarkup)
1011 * Added support for more attributes:
1012 * `srcSet` for `<img>` to specify images at different pixel ratios
1013 * `textAnchor` for SVG
@@ -1019,7 +1019,7 @@ Each of these changes will continue to work as before with a new warning until t
1019
1020 ### Addons
1021
1022 -* `update` function to deal with immutable data. [Read the docs](https://facebook.github.io/react/docs/update.html)
1022 +* `update` function to deal with immutable data. [Read the docs](https://reactjs.org/docs/update.html)
1023
1024 ### react-tools
1025 * Added an option argument to `transform` function. The only option supported is `harmony`, which behaves the same as `jsx --harmony` on the command line. This uses the ES6 transforms from [jstransform](https://github.com/facebook/jstransform).
@@ -1181,7 +1181,7 @@ Each of these changes will continue to work as before with a new warning until t
1181
1182 ### React with Addons (New!)
1183
1184 -* Introduced a separate build with several "addons" which we think can help improve the React experience. We plan to deprecate this in the long-term, instead shipping each as standalone pieces. [Read more in the docs](https://facebook.github.io/react/docs/addons.html).
1184 +* Introduced a separate build with several "addons" which we think can help improve the React experience. We plan to deprecate this in the long-term, instead shipping each as standalone pieces. [Read more in the docs](https://reactjs.org/docs/addons.html).
1185
1186 ### JSX
1187
@@ -1214,10 +1214,10 @@ Each of these changes will continue to work as before with a new warning until t
1214 * Switch from using `id` attribute to `data-reactid` to track DOM nodes. This allows you to integrate with other JS and CSS libraries more easily.
1215 * Support for more DOM elements and attributes (e.g., `<canvas>`)
1216 * Improved server-side rendering APIs. `React.renderComponentToString(<component>, callback)` allows you to use React on the server and generate markup which can be sent down to the browser.
1217 -* `prop` improvements: validation and default values. [Read our blog post for details...](https://facebook.github.io/react/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html)
1218 -* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](https://facebook.github.io/react/docs/multiple-components.html)
1219 -* Removed `React.autoBind`. [Read our blog post for details...](https://facebook.github.io/react/blog/2013/07/02/react-v0-4-autobind-by-default.html)
1220 -* Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](https://facebook.github.io/react/docs/forms.html)
1217 +* `prop` improvements: validation and default values. [Read our blog post for details...](https://reactjs.org/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html)
1218 +* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](https://reactjs.org/docs/multiple-components.html)
1219 +* Removed `React.autoBind`. [Read our blog post for details...](https://reactjs.org/blog/2013/07/02/react-v0-4-autobind-by-default.html)
1220 +* Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](https://reactjs.org/docs/forms.html)
1221 * We've implemented an improved synthetic event system that conforms to the W3C spec.
1222 * Updates to your component are batched now, which may result in a significantly faster re-render of components. `this.setState` now takes an optional callback as it's second parameter. If you were using `onClick={this.setState.bind(this, state)}` previously, you'll want to make sure you add a third parameter so that the event is not treated as the callback.
1223
CONTRIBUTING.md
+1 -1
@@ -2,4 +2,4 @@
2
3 Want to contribute to React? There are a few things you need to know.
4
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
@@ -1,4 +1,4 @@
1 -# [React](https://facebook.github.io/react/) &middot; [![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/) &middot; [![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)
2
3 React is a JavaScript library for building user interfaces.
4
@@ -6,11 +6,11 @@ React is a JavaScript library for building user interfaces.
6 * **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.
7 * **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/).
8
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).
10
11 ## Examples
12
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:
14
15 ```jsx
16 class HelloMessage extends React.Component {
@@ -27,19 +27,19 @@ ReactDOM.render(
27
28 This example will render "Hello John" into a container on the page.
29
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.
31
32 ## Installation
33
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).
35
36 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.
37
38 The recommended way to install React depends on your project. Here you can find short guides for the most common scenarios:
39
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)
43
44 ## Contributing
45
@@ -51,7 +51,7 @@ Facebook has adopted a Code of Conduct that we expect project participants to ad
51
52 ### Contributing Guide
53
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.
55
56 ### Beginner Friendly Bugs
57
docs/README.md
+2 -2
@@ -1,10 +1,10 @@
1 # React Documentation & Website
2
3 -## [Read the React Documentation](https://facebook.github.io/react/)
3 +## [Read the React Documentation](https://reactjs.org/)
4
5 This folder is not the right place to *read* the documentation.
6
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.
8
9 This folder only contains the source code for the website.
10
docs/_config.yml
+2 -2
@@ -1,8 +1,8 @@
1 ---
2 name: React
3 description: A JavaScript library for building user interfaces
4 -url: https://facebook.github.io
5 -baseurl: /react
4 +url: https://reactjs.org/
5 +baseurl: /
6 permalink: /blog/:year/:month/:day/:title.html
7 paginate_path: /blog/page:num/
8 paginate: 5
docs/_layouts/default.html
+2 -2
@@ -22,8 +22,8 @@
22 <meta name="viewport" content="width=device-width, initial-scale=1">
23 <meta property="og:title" content="{{ title }}">
24 <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">
27 <meta property="og:description" content="{{ description }}">
28 <meta property="fb:app_id" content="623268441017527">
29
docs/_posts/2015-07-03-react-v0.14-beta-1.md
+1 -1
@@ -7,7 +7,7 @@ This week, many people in the React community are at [ReactEurope](https://www.r
7
8 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.
9
10 -You can install the new beta with `npm install react@0.14.0-beta1` and `npm install react-dom@0.14.0-beta1`. 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 react@0.14.0-beta1` and `npm install react-dom@0.14.0-beta1`. 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.
11
12 ## Two Packages
13
docs/_posts/2016-07-11-introducing-reacts-error-code-system.md
+1 -1
@@ -13,6 +13,6 @@ In order to make debugging in production easier, we're introducing an Error Code
13
14 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:
15
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.
17
18 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
@@ -71,7 +71,7 @@ See the [documentation for `ReactDOMServer`](/docs/react-dom-server.html) for mo
71
72 ### Support for custom DOM attributes
73
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.
75
76 ### Reduced file size
77
@@ -168,7 +168,7 @@ React 16 includes a number of small breaking changes. These only affect uncommon
168
169 * 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.
170 * 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.
172 * The names and paths to the single-file browser builds have changed to emphasize the difference between development and production builds. For example:
173 * `react/dist/react.js` → `react/umd/react.development.js`
174 * `react/dist/react.min.js` → `react/umd/react.production.min.js`
docs/docs/cross-origin-errors.md
+1 -1
@@ -8,7 +8,7 @@ permalink: docs/cross-origin-errors.html
8 >
9 > The following section applies only to the development mode of React. Error handling in production mode is done with regular try/catch statements.
10
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.
12
13 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.
14
docs/tutorial/tutorial.md
+1 -1
@@ -71,7 +71,7 @@ We recommend following [these instructions](http://babeljs.io/docs/editors) to c
71
72 ### Help, I'm Stuck!
73
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.
75
76 With this out of the way, let's get started!
77
docs/warnings/unknown-prop.md
+1 -1
@@ -7,7 +7,7 @@ The unknown-prop warning will fire if you attempt to render a DOM element with a
7
8 There are a couple of likely reasons this warning could be appearing:
9
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.
11
12 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).
13
fixtures/dom/src/components/Header.js
+1 -1
@@ -34,7 +34,7 @@ class Header extends React.Component {
34 <div className="header__inner">
35 <span className="header__logo">
36 <img
37 - src="https://facebook.github.io/react/img/logo.svg"
37 + src="https://reactjs.org/img/logo.svg"
38 alt=""
39 width="32"
40 height="32"
packages/react-art/package.json
+1 -1
@@ -16,7 +16,7 @@
16 "bugs": {
17 "url": "https://github.com/facebook/react/issues"
18 },
19 - "homepage": "https://facebook.github.io/react/",
19 + "homepage": "https://reactjs.org/",
20 "dependencies": {
21 "create-react-class": "^15.6.2",
22 "fbjs": "^0.8.16",
packages/react-dom/package.json
+1 -1
@@ -11,7 +11,7 @@
11 "bugs": {
12 "url": "https://github.com/facebook/react/issues"
13 },
14 - "homepage": "https://facebook.github.io/react/",
14 + "homepage": "https://reactjs.org/",
15 "dependencies": {
16 "fbjs": "^0.8.16",
17 "loose-envify": "^1.1.0",
packages/react-test-renderer/package.json
+1 -1
@@ -13,7 +13,7 @@
13 "bugs": {
14 "url": "https://github.com/facebook/react/issues"
15 },
16 - "homepage": "https://facebook.github.io/react/",
16 + "homepage": "https://reactjs.org/",
17 "dependencies": {
18 "fbjs": "^0.8.16",
19 "object-assign": "^4.1.1"
packages/react/README.md
+1 -1
@@ -1,6 +1,6 @@
1 # react
2
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/),
4 without also requiring the JSX transformer. This is especially useful for cases where you
5 want to [`browserify`](https://github.com/substack/node-browserify) your module using
6 `React`.
packages/react/package.json
+1 -1
@@ -5,7 +5,7 @@
5 "react"
6 ],
7 "version": "16.0.0",
8 - "homepage": "https://facebook.github.io/react/",
8 + "homepage": "https://reactjs.org/",
9 "bugs": "https://github.com/facebook/react/issues",
10 "license": "MIT",
11 "files": [
scripts/error-codes/README.md
+2 -2
@@ -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).
2
3 ## Note for cutting a new React release
4 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:
11 - [`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`.
12 - [`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.
13 - [`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
@@ -457,7 +457,7 @@ git commit -am 'Rebuild the website'
457 git push
458 ```
459
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.
461
462 Don’t forget to switch to `master` for the future development.
463
src/isomorphic/children/ReactChildren.js
+4 -4
@@ -263,7 +263,7 @@ function forEachSingleChild(bookKeeping, child, name) {
263 /**
264 * Iterates through children that are typically specified as `props.children`.
265 *
266 - * See https://facebook.github.io/react/docs/react-api.html#react.children.foreach
266 + * See https://reactjs.org/docs/react-api.html#react.children.foreach
267 *
268 * The provided forEachFunc(child, index) will be called for each
269 * leaf child.
@@ -332,7 +332,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
332 /**
333 * Maps children that are typically specified as `props.children`.
334 *
335 - * See https://facebook.github.io/react/docs/react-api.html#react.children.map
335 + * See https://reactjs.org/docs/react-api.html#react.children.map
336 *
337 * The provided mapFunction(child, key, index) will be called for each
338 * leaf child.
@@ -355,7 +355,7 @@ function mapChildren(children, func, context) {
355 * Count the number of children that are typically specified as
356 * `props.children`.
357 *
358 - * See https://facebook.github.io/react/docs/react-api.html#react.children.count
358 + * See https://reactjs.org/docs/react-api.html#react.children.count
359 *
360 * @param {?*} children Children tree container.
361 * @return {number} The number of children.
@@ -368,7 +368,7 @@ function countChildren(children, context) {
368 * Flatten a children object (typically specified as `props.children`) and
369 * return an array with appropriately re-keyed children.
370 *
371 - * See https://facebook.github.io/react/docs/react-api.html#react.children.toarray
371 + * See https://reactjs.org/docs/react-api.html#react.children.toarray
372 */
373 function toArray(children) {
374 var result = [];
src/isomorphic/children/onlyChild.js
+1 -1
@@ -16,7 +16,7 @@ var invariant = require('fbjs/lib/invariant');
16 * Returns the first child in a collection of children and verifies that there
17 * is only one child in the collection.
18 *
19 - * See https://facebook.github.io/react/docs/react-api.html#react.children.only
19 + * See https://reactjs.org/docs/react-api.html#react.children.only
20 *
21 * The current implementation of this function assumes that a single child gets
22 * passed without a wrapper, but the purpose of this helper function is to
src/isomorphic/classic/element/ReactElement.js
+4 -4
@@ -175,7 +175,7 @@ var ReactElement = function(type, key, ref, self, source, owner, props) {
175
176 /**
177 * Create and return a new ReactElement of the given type.
178 - * See https://facebook.github.io/react/docs/react-api.html#createelement
178 + * See https://reactjs.org/docs/react-api.html#createelement
179 */
180 ReactElement.createElement = function(type, config, children) {
181 var propName;
@@ -267,7 +267,7 @@ ReactElement.createElement = function(type, config, children) {
267
268 /**
269 * Return a function that produces ReactElements of a given type.
270 - * See https://facebook.github.io/react/docs/react-api.html#createfactory
270 + * See https://reactjs.org/docs/react-api.html#createfactory
271 */
272 ReactElement.createFactory = function(type) {
273 var factory = ReactElement.createElement.bind(null, type);
@@ -296,7 +296,7 @@ ReactElement.cloneAndReplaceKey = function(oldElement, newKey) {
296
297 /**
298 * Clone and return a new ReactElement using element as the starting point.
299 - * See https://facebook.github.io/react/docs/react-api.html#cloneelement
299 + * See https://reactjs.org/docs/react-api.html#cloneelement
300 */
301 ReactElement.cloneElement = function(element, config, children) {
302 var propName;
@@ -365,7 +365,7 @@ ReactElement.cloneElement = function(element, config, children) {
365
366 /**
367 * Verifies the object is a ReactElement.
368 - * See https://facebook.github.io/react/docs/react-api.html#isvalidelement
368 + * See https://reactjs.org/docs/react-api.html#isvalidelement
369 * @param {?object} object
370 * @return {boolean} True if `object` is a valid component.
371 * @final
src/renderers/dom/ReactDOMNodeStreamRenderer.js
+2 -2
@@ -32,7 +32,7 @@ class ReactMarkupReadableStream extends Readable {
32 /**
33 * Render a ReactElement to its initial HTML. This should only be used on the
34 * server.
35 - * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertonodestream
35 + * See https://reactjs.org/docs/react-dom-stream.html#rendertonodestream
36 */
37 function renderToNodeStream(element) {
38 return new ReactMarkupReadableStream(element, false);
@@ -41,7 +41,7 @@ function renderToNodeStream(element) {
41 /**
42 * Similar to renderToNodeStream, except this doesn't create extra DOM attributes
43 * such as data-react-id that React uses internally.
44 - * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticnodestream
44 + * See https://reactjs.org/docs/react-dom-stream.html#rendertostaticnodestream
45 */
46 function renderToStaticNodeStream(element) {
47 return new ReactMarkupReadableStream(element, true);
src/renderers/dom/ReactDOMStringRenderer.js
+2 -2
@@ -14,7 +14,7 @@ var ReactPartialRenderer = require('ReactPartialRenderer');
14 /**
15 * Render a ReactElement to its initial HTML. This should only be used on the
16 * server.
17 - * See https://facebook.github.io/react/docs/react-dom-server.html#rendertostring
17 + * See https://reactjs.org/docs/react-dom-server.html#rendertostring
18 */
19 function renderToString(element) {
20 var renderer = new ReactPartialRenderer(element, false);
@@ -25,7 +25,7 @@ function renderToString(element) {
25 /**
26 * Similar to renderToString, except this doesn't create extra DOM attributes
27 * such as data-react-id that React uses internally.
28 - * See https://facebook.github.io/react/docs/react-dom-server.html#rendertostaticmarkup
28 + * See https://reactjs.org/docs/react-dom-server.html#rendertostaticmarkup
29 */
30 function renderToStaticMarkup(element) {
31 var renderer = new ReactPartialRenderer(element, true);
src/renderers/dom/test/ReactTestUtilsEntry.js
+1 -1
@@ -118,7 +118,7 @@ function findAllInRenderedFiberTreeInternal(fiber, test) {
118 /**
119 * Utilities for making it easy to test React components.
120 *
121 - * See https://facebook.github.io/react/docs/test-utils.html
121 + * See https://reactjs.org/docs/test-utils.html
122 *
123 * Todo: Support the entire DOM.scry query syntax. For now, these simple
124 * utilities will suffice for testing purposes.
www/package.json
+1 -1
@@ -48,7 +48,7 @@
48 "engines": {
49 "node": ">=7.6.0"
50 },
51 - "homepage": "https://facebook.github.io/react/",
51 + "homepage": "https://reactjs.org/",
52 "keywords": [
53 "gatsby"
54 ],