是否有可能在运行时检测当前版本的React是开发版还是生产版?我想做这样的事情:
if (React.isDevelopment) {
// Development thing
} else {
// Real thing
}
在运行时检测生产与开发React
是否有可能在运行时检测当前版本的React是开发版还是生产版?我想做这样的事情:
if (React.isDevelopment) {
// Development thing
} else {
// Real thing
}
第2102篇《在运行时检测生产与开发React》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
相似问题
问题类别