javascript - react-router V4 component nesting
代言
代言 2017-06-26 10:50:06
0
2
878

I used react-router V2 before, so it was no problem to write route nesting like this:

Purpose: The Main_page component will be loaded when accessing different paths. Subcomponents such as Abstract or React_tutorial will be rendered in the Main_page component according to different paths. These subcomponents can be referenced through props children in the Main_page component.

But now after upgrading to version V4, I can no longer play. Please tell me what should I do to achieve the above purpose in version V4?

代言
代言

reply all(2)
淡淡烟草味

Detailed learning case of react-router v4. This is the Chinese version. The one upstairs is the English version.

https://reacttraining.cn/web/...

小葫芦

Never used it before, try the documentation:
Documentation

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template