In react why don't index.js files need to be specified on import?

前端 未结 0 967
慢半拍i
慢半拍i 2021-01-18 10:09

Trying to understand while using create react app why if a folder contains an index.js and you want to import it, then you only specify the folder name?

I was curious

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