How do I conditionally import react-devtools?

后端 未结 0 1356
盖世英雄少女心
盖世英雄少女心 2021-01-22 14:42

I want to conditionally import react-devtools based on an environment variable but eslint says that I can\'t import in the body of the module when I try to import react-dom

相关标签:
回答
  • 消灭零回复
提交回复
热议问题