score:1
Accepted answer
try defining route like this:
<route path={`${match.path}/:infosectionname`} component={worldnews} />
Source: stackoverflow.com
Related Query
- React nested routes - undefined match
- How can I exactly match routes nested deeply in react router 6?
- React Router v5 - Global No match in Nested Routes
- React Router v4 Nested Routes pass in match with Class Component
- React Router v4 dynamic nested routes do not match
- React Router 4 No Match with nested Routes
- Nested Match routes with React Router v4 and MatchWithFade
- Nested routes with react router v4 / v5
- React router - Nested routes not working
- React Router v4 nested routes props.children
- React Router 4 Match returns undefined
- React Router v4 Nested match params not accessible at root level
- React router Link not causing component to update within nested routes
- React Router v4 Nested Routes with Switch
- React Router v5.0 Nested Routes
- Webpack 2 + React - nested routes when code splitting with System.import
- React Router doesn't load images properly with nested routes
- How to link to nested routes in React Router
- React router nested routes - How to redirect when no route is matching
- React router nested routes. Not rendering child routes
- checking router.isActive on nested Routes in React
- React Router v4 nested routes not work with webpack-dev-server
- React Router 6 alpha 4 nested routes
- Default component in nested routes in React Router
- React Nested Routes throwing error - Meteor
- Nested routes inside react component
- React router 4 how to nested routes /admin and /
- Nested Routes not rendering with React Router v4
- React Router v5 nested routes not found
- Nested routes in React Router v4 not rendering as expected
More Query from same tag
- Adding ReactJS to a project without npm start
- Set multiple component on click button - React
- Weekly display of headers with react-table
- Undefined error when trying to access an element in JSON array from fetch response
- Create JSON User-Object in React
- How to loop through a javascript object array? Looping shows zero records
- Tracking User Active Time
- URL changing but view is not changing in React Router 4
- Hooks inside of utility components
- Why my image slider only show the first image instead of all 3 images?
- Turn two columns into tabs
- How to change useState variable in the same function
- React app : old version kept in cache until I inspect it
- retrieve data from a list of specific IDs in Firebase, follow user and only get their posts
- Withrouter Error using function component and typescript jsx.element' is not assignable to parameter of type routecomponentprops
- How to fire onChange event on custom components using react-testing-library?
- using setInterval to increment variable every second - not updating
- 404 image react router dom link with parameter
- Why only my first Router render the component? Second router is not rendering
- How do I subscribe to @computed object in mobx?
- unexpected value - e.target.value
- How to decrease time using interval
- react-router and pretty URLs
- Fill for external SVG file in React
- Dynamic Form Name for redux-form
- Why objects are not valid as react children? What are valid children in react and why?
- What is the proper way to enable the css prop in Emotion 11/Next js 10 apps
- Why do React components that throw errors render twice?
- How to change Content-Type to application/json React
- React remove last url from anchor inside li