Skip to content

Commit

Permalink
Add missing import in react-dev-utils README.md (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck authored and gaearon committed Jan 11, 2017
1 parent 11cc5ae commit d29fb00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-dev-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Extracts and prettifies warning and error messages from webpack [stats](https://
```js
var webpack = require('webpack');
var config = require('../config/webpack.config.dev');
var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');

var compiler = webpack(config);

Expand Down Expand Up @@ -184,6 +185,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`.

```js
var prompt = require('react-dev-utils/prompt');

prompt(
'Are you sure you want to eat all the candy?',
/* isYesDefault */ false
Expand Down

0 comments on commit d29fb00

Please sign in to comment.