简体   繁体   中英

React components are not rendering/not showing up on browser

I have a react project with all the latest npm packages. Please check github link for package.json file

I can see the bundle.js file created and my components on chrome developers tools, however I cannot see those components render on browser.

git repo

Please refer to image below 在此处输入图片说明

React devtool tab

在此处输入图片说明

The problem was the way I was using react-router-dom. The updated version does the support the way we used to pass nested routes to a parent routes where it used to render.

If anyone have same issues then refer to this awesome example guide. react router 4 awesome example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM