是否有可能在运行时检测当前版本的React是开发还是生产?我想做这样的事情:
if (React.isDevelopment) { // Development thing } else { // Real thing }
javascript reactjs
javascript ×1
reactjs ×1