From 54b280b4fe5510ec126c27ba03d513c9a2184d7c Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 3 Apr 2017 20:32:02 +0100 Subject: [PATCH] Remove examples/ folder (#9323) --- contributing/how-to-contribute.md | 2 +- docs/web-components.md | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/contributing/how-to-contribute.md b/contributing/how-to-contribute.md index 6613a3c7..ff2180e0 100644 --- a/contributing/how-to-contribute.md +++ b/contributing/how-to-contribute.md @@ -115,7 +115,7 @@ We recommend running `npm test` (or its variations above) to make sure you don't First, run `npm run build`. This will produce pre-built bundles in `build` folder, as well as prepare npm packages inside `build/packages`. -The easiest way to try your changes is to open and modify `examples/basic/index.html`. This file already uses `react.js` from the `build` folder so it will pick up your changes. Please make sure to rollback any unintentional changes in `examples` before sending a pull request. +The easiest way to try your changes is to run `npm run build` and then open `fixtures/packaging/globals.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/react.js`, `build/react-dom.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: diff --git a/docs/web-components.md b/docs/web-components.md index 4063db0e..1012ea79 100644 --- a/docs/web-components.md +++ b/docs/web-components.md @@ -56,5 +56,3 @@ const proto = Object.create(HTMLElement.prototype, { }); document.registerElement('x-search', {prototype: proto}); ``` - -You can also check out this [complete Web Components example on GitHub](https://github.com/facebook/react/tree/master/examples/webcomponents).