score:1

Accepted answer

Change your App.js to this

<Layout>

               <Switch>

            <Route path="/detail" component={MobileDetail} />

            <Route path="/" component={Mobile} /> 

            </Switch>

            </Layout>

Related Query

More Query from same tag