Skip to content

Commit

Permalink
Update react-dom README
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Sep 6, 2018
1 parent b47a28c commit 8963118
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/react/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# react
# `react`

An npm package to get you immediate access to [React](https://reactjs.org/),
without also requiring the JSX transformer. This is especially useful for cases where you
want to [`browserify`](https://github.com/substack/node-browserify) your module using
`React`.
React is a JavaScript library for creating user interfaces.

**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.
The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.

To use React in production mode, set the environment variable `NODE_ENV` to `production`. A minifier that performs dead-code elimination such as [UglifyJS](https://github.com/mishoo/UglifyJS2) is recommended to completely remove the extra code present in development mode.
**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. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.

## Example Usage

Expand Down

0 comments on commit 8963118

Please sign in to comment.