SyntaxFix
Write A Post
Hire A Developer
Questions
The shortest answer is
Please try this.
<switch> <Route exact path="/" component={Home} /> <Route path="/about" component={About} /> <Route path="/shop" component={Shop} /> </switch>