function App() {
return (
<div className="App">
<div>
<NavLink to="/home">点我去home</NavLink>
<NavLink to="/phone">点我去phone</NavLink>
<NavLink to="/User">点我去User</NavLink>
</div>
<Switch>
<Route path="/home" component={Home}/>
<Route path="/phone" component={Phone}/>
<Route path="/User" component={User}/>
<Route path="/User" component={User}/>
<Redirect from="/" to="/home/homea" exact/>
</Switch>
</div>
);
}
export default App;