diff --git a/docs/_config.yml b/docs/_config.yml index 0b6d13d4dfc2c..2bc53ec7ff458 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -60,7 +60,7 @@ sass: gems: - jekyll-redirect-from - jekyll-paginate -react_version: 15.4.0 +react_version: 16.0.0 react_hashes: dev: buVLzxzBI8Ps3svVMSUurNdb5dozNidH5Ow4H0YgZeia3t6Oeui2VLpvtAq1fwtK prod: nCjsa0kjNQPQdxWm12/ReVJzfBJaVubEwwDswyQDGMKYJmeWv3qShMuETfU5fisu diff --git a/docs/_js/live_editor.js b/docs/_js/live_editor.js index 3a95ac5fbea26..f1d57b31e2ad0 100644 --- a/docs/_js/live_editor.js +++ b/docs/_js/live_editor.js @@ -8,7 +8,7 @@ var IS_MOBILE = ( || navigator.userAgent.match(/Windows Phone/i) ); -var CodeMirrorEditor = React.createClass({ +var CodeMirrorEditor = createReactClass({ propTypes: { lineNumbers: PropTypes.bool, onChange: PropTypes.func, @@ -74,7 +74,7 @@ var selfCleaningTimeout = { }, }; -var ReactPlayground = React.createClass({ +var ReactPlayground = createReactClass({ mixins: [selfCleaningTimeout], MODES: {JSX: 'JSX', JS: 'JS'}, //keyMirror({JSX: true, JS: true}), diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index f40bec625e4dd..923eceeac6bf7 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -49,8 +49,9 @@ - - + + + diff --git a/docs/contributing/how-to-contribute.md b/docs/contributing/how-to-contribute.md index 43abca9d36072..d306f7297a13b 100644 --- a/docs/contributing/how-to-contribute.md +++ b/docs/contributing/how-to-contribute.md @@ -116,7 +116,7 @@ First, run `npm run build`. This will produce pre-built bundles in `build` folde The easiest way to try your changes is to run `npm run build` and then open `fixtures/packaging/babel-standalone/dev.html`. This file already uses `react.js` from the `build` folder so it will pick up your changes. -If you want to try your changes in your existing React project, you may copy `build/dist/react.development.js`, `build/dist/react-dom.development.js`, or any other build products into your app and use them instead of the stable version. If your project uses React from npm, you may delete `react` and `react-dom` in its dependencies and use `npm link` to point them to your local `build` folder: +If you want to try your changes in your existing React project, you may copy `build/umd/react.development.js`, `build/umd/react-dom.development.js`, or any other build products into your app and use them instead of the stable version. If your project uses React from npm, you may delete `react` and `react-dom` in its dependencies and use `npm link` to point them to your local `build` folder: ```sh cd your_project diff --git a/docs/docs/optimizing-performance.md b/docs/docs/optimizing-performance.md index 29b1186be9bac..b54aa316c90f2 100644 --- a/docs/docs/optimizing-performance.md +++ b/docs/docs/optimizing-performance.md @@ -42,11 +42,11 @@ Remember that this is only necessary before deploying to production. For normal We offer production-ready versions of React and React DOM as single files: ```html - - + + ``` -Remember that only React files ending with `.min.js` are suitable for production. +Remember that only React files ending with `.production.min.js` are suitable for production. ### Brunch diff --git a/docs/downloads/single-file-example.html b/docs/downloads/single-file-example.html index 11b83bf02fdea..d0fe6b2ca8a7b 100644 --- a/docs/downloads/single-file-example.html +++ b/docs/downloads/single-file-example.html @@ -3,8 +3,8 @@ Hello World - - + +