@0xaio/react-error-overlay 中文文档教程
react-error-overlay
react-error-overlay
是一个覆盖层,在出现运行时错误时显示。
Development
在此包中进行开发时,请确保运行 npm start
(或 yarn start
),以便在您工作时编译文件。 默认情况下,它以监视模式运行。
如果您想为生产构建它,请运行 npm run build:prod
(或 yarn build:prod
)。
如果你想为开发构建这个一次性的,你可以运行 NODE_ENV=development npm run build
(或 NODE_ENV=development yarn build
)。
react-error-overlay
react-error-overlay
is an overlay which displays when there is a runtime error.
Development
When developing within this package, make sure you run npm start
(or yarn start
) so that the files are compiled as you work. This is ran in watch mode by default.
If you would like to build this for production, run npm run build:prod
(or yarn build:prod
).
If you would like to build this one-off for development, you can run NODE_ENV=development npm run build
(or NODE_ENV=development yarn build
).