react如何注册一个全局自定义组件,使用js编程的形式调用呢
如果采用 react-cli 的话,不能用全局变量的。import 比起全局组件也没那么麻烦吧。
react-cli
import
2.1m questions
2.1m answers
62 comments
56.7k users