mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
**what is the change?:** We needed this dependency in the package.json **why make this change?:** Even though `create-react-class` was added as a dependency to the `package.json` in https://github.com/facebook/react/pull/9399/files we didn't completely cherry-pick this change onto 15.6 from master in https://github.com/facebook/react/commit/b48b2594fae7af3228ff6a0727cf8828b33b419e This fixes that omission. Following this fix we will review PR 9399 and make sure nothing else was missed. **test plan:** `yarn build` and inspect the `builds/packages/react/package.json`, see that `create-react-class` is included. **issue:** https://github.com/facebook/react/issues/9830
react
An npm package to get you immediate access to React,
without also requiring the JSX transformer. This is especially useful for cases where you
want to browserify your module using
React.
Note: by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages.
To use React in production mode, set the environment variable NODE_ENV to production. A minifier that performs dead-code elimination such as UglifyJS is recommended to completely remove the extra code present in development mode.
Example Usage
var React = require('react');