mocheng / react-and-redux

《深入浅出React和Redux》代码
2.01k stars 799 forks source link

react-router-v4 #41

Open syssam opened 7 years ago

syssam commented 7 years ago

react-router-v4有沒有chunk的方案呢?

AlanKnightly commented 6 years ago

react-router4只是分片时采取的方式不太一样而已,可以引入一个Bundle组件,改写一下获取待加载组件的reducer、state字段就好了。之前有查阅过这方面的方案:http://www.cnblogs.com/alan2kat/p/7754846.html

syssam commented 6 years ago

恩,現在官方文檔已經有教了,之前沒提供方法,介意我問antd的問題嗎

從我的 iPhone 傳送

AlanKnightly notifications@github.com 於 2017年11月17日 22:26 寫道:

react-router4只是分片时采取的方式不太一样而已,可以引入一个Bundle组件,改写一下获取待加载组件的reducer、state字段就好了。之前有查阅过这方面的方案:http://www.cnblogs.com/alan2kat/p/7754846.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

AlanKnightly commented 6 years ago

没用过antd,抱歉。。。