Commit d29fb006 authored by Pedro Nauck's avatar Pedro Nauck Committed by Dan Abramov
Browse files

Add missing import in react-dev-utils README.md (#1369)

parent 11cc5aef
No related merge requests found
Showing with 2 additions and 0 deletions
+2 -0
...@@ -117,6 +117,7 @@ Extracts and prettifies warning and error messages from webpack [stats](https:// ...@@ -117,6 +117,7 @@ Extracts and prettifies warning and error messages from webpack [stats](https://
```js ```js
var webpack = require('webpack'); var webpack = require('webpack');
var config = require('../config/webpack.config.dev'); var config = require('../config/webpack.config.dev');
var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
var compiler = webpack(config); var compiler = webpack(config);
...@@ -184,6 +185,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`. ...@@ -184,6 +185,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`.
```js ```js
var prompt = require('react-dev-utils/prompt'); var prompt = require('react-dev-utils/prompt');
prompt( prompt(
'Are you sure you want to eat all the candy?', 'Are you sure you want to eat all the candy?',
/* isYesDefault */ false /* isYesDefault */ false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment