dillon1000/react

Commit

Use create-react-app for fixtures application

This moves the current fixture architecture to one based around create-react-app. There are a few important things to note:

* The react-loader.js script is always loaded before the bundle and will populate React and ReactDOM on the window. It is then read from the window by all components.
* The UI for the "React Sandbox" or "React Fixtures App" is also rendered with whatever version of React the user has selected. This means we dont have to deal with iframes or worry about multiple versions of React potentially interferring. But it also means that all components must be written using createClass to be fully backwards compatable. I tested back to 0.13.1 and it works fine.
Browse files
Changed paths27 files
First-parent comparison
A fixtures/.gitignore AddedA fixtures/package.json AddedA fixtures/public/favicon.ico AddedA fixtures/public/index.html AddedR fixtures/react-loader.js →fixtures/public/react-loader.js RenamedD fixtures/range-inputs/index.html DeletedD fixtures/selects/index.html DeletedA fixtures/src/components/App.js AddedA fixtures/src/components/Header.js AddedA fixtures/src/components/RangeInputs.js AddedA fixtures/src/components/TextInputs.js AddedA fixtures/src/components/fixtures/index.js AddedR fixtures/range-inputs/README.md →fixtures/src/components/fixtures/range-inputs/README.md RenamedA fixtures/src/components/fixtures/range-inputs/index.js AddedR fixtures/selects/README.md →fixtures/src/components/fixtures/selects/README.md RenamedA fixtures/src/components/fixtures/selects/index.js AddedR fixtures/text-inputs/README.md →fixtures/src/components/fixtures/text-inputs/README.md RenamedA fixtures/src/components/fixtures/text-inputs/index.js AddedR fixtures/textareas/README.md →fixtures/src/components/fixtures/textareas/README.md RenamedA fixtures/src/components/fixtures/textareas/index.js AddedA fixtures/src/index.js AddedA fixtures/src/styles/App.css AddedA fixtures/src/styles/TextInputs.css AddedD fixtures/test.html DeletedD fixtures/text-inputs/index.html DeletedD fixtures/textareas/index.html DeletedA fixtures/yarn.lock Added
Patch

Files changed

Rendering syntax-highlighted changes…