Browse Source

Remove examples/ folder (#9323)

main
Dan Abramov 8 years ago
committed by GitHub
parent
commit
54b280b4fe
  1. 2
      contributing/how-to-contribute.md
  2. 2
      docs/web-components.md

2
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:

2
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).

Loading…
Cancel
Save