From 97177f45415f8bd1daddeb76f8155d1e912410a1 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 26 Sep 2017 18:10:24 +0100 Subject: [PATCH 1/3] Fix React links on the website --- docs/_layouts/default.html | 4 ++-- docs/contributing/how-to-contribute.md | 2 +- docs/docs/optimizing-performance.md | 6 +++--- docs/downloads/single-file-example.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index f40bec625e4dd..5cc71862bc435 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -49,8 +49,8 @@ - - + + 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 - - + + From 4742d164a2c7a233f5b391f7b251d3e16382c19e Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 26 Sep 2017 18:15:54 +0100 Subject: [PATCH 2/3] Fix code editor --- docs/_config.yml | 2 +- docs/_layouts/default.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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/_layouts/default.html b/docs/_layouts/default.html index 5cc71862bc435..923eceeac6bf7 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -51,6 +51,7 @@ + From 106f0b2ce3179895e3ac603257aa3ac2c71b9e76 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 26 Sep 2017 18:17:47 +0100 Subject: [PATCH 3/3] Fix code editor, attempt 2 --- docs/_js/live_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}),