You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This function displays a console prompt to the user.
204
-
205
-
By convention, "no" should be the conservative choice.<br>
206
-
If you mistype the answer, we'll always take it as a "no".<br>
207
-
You can control the behavior on `<Enter>` with `isYesDefault`.
208
-
209
-
```js
210
-
var prompt =require('react-dev-utils/prompt');
211
-
212
-
prompt(
213
-
'Are you sure you want to eat all the candy?',
214
-
/* isYesDefault */false
215
-
).then(shouldEat=> {
216
-
if (shouldEat) {
217
-
console.log('You have successfully consumed all the candy.');
218
-
} else {
219
-
console.log('Phew, candy is still available!');
220
-
}
221
-
});
222
-
```
223
-
224
201
#### `webpackHotDevClient.js`
225
202
226
203
This is an alternative client for [WebpackDevServer](https://github.com/webpack/webpack-dev-server) that shows a syntax error overlay.
0 commit comments