score:1

if your domain is, for example, "site.com", you only have routes for "site.com/home", "site.com/about" and "site.com/contact", so when your routing is empty, it's only normal that nothing is going to show up.

if you add a route to your root domain after all your routes, something should show up instead of nothing.

for example, try adding this after all your other routes;

<route path='/' component={home} exact/>

also, your props should be named "component" instead of "component" for your route component.

i tried replicating your scenario here:

edit interesting-mclaren-m6h9g

you can edit the code and make your own changes as you learn about routing. i truly think though that you were not being able to see your jsx because of the first uppercase letter in your route props being "component" instead of "component".


Related Query

More Query from same tag