How to apply lazy loading to react-router-dom?

后端 未结 0 1979
走了就别回头了
走了就别回头了 2021-02-14 10:33

I have a basic routing with two pages: home and about. I\'ve imported both pages with react.lazy and wrapped each of them with a suspense fallback.

The homepage loads wel

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