Conditional import in React.js

前端 未结 0 1913
孤独总比滥情好
孤独总比滥情好 2020-12-25 09:35

I need to import with condition. I am using below code and getting error.

if (window.location.hostname == \'sellbutton\') {
  import serviceToUSe from \'../pu         


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