ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Follow publication

Member-only story

React Router: How to add child routes

2 min readJul 9, 2019
Photo by Ergyn Meshekran on Unsplash
const NewComponent = ({shouldDisplay}) => {
return shouldDisplay ? <div>HA!</div> : null
}
import { 
BrowserRouter as Router,
Link,
Route
}
from 'react-router-dom'

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

ITNEXT
ITNEXT

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Avery Duffin
Avery Duffin

Written by Avery Duffin

Im a software engineer, react developer, inventor, salesman, family man, religious, and outdoor connoisseur

Responses (1)

Write a response