Alpit Anand
Alpit Anand

Reputation: 1258

React-router not displaying a functional component

I have been trying to learn react-router, and was fiddling with it on stackBlitz, with the url project link
The "About" content was displayed on the url but none of its content was being displayed.

The project is completely editable, can you please suggest me what could be the issue

Upvotes: 0

Views: 38

Answers (1)

Guillaume Jasmin
Guillaume Jasmin

Reputation: 1139

In your GetData.js line 34: remove exact

exact props mean that you want only /:id, not /:id/about

Upvotes: 1

Related Questions