score:5

Accepted answer
export const App = () =>
  <Router>
    <div className="App">
      <NavBar />
      <div className="text-center">
        <div className="children">
          <div className="container">
            <Link to="/">Home</Link>
            <Link to="/contact">Contact</Link>
            <Link to="/terms">Terms</Link>
            <Route exact path="/" component={Home} />
            <Route path="/contact" component={Contact} />
            <Route path="/terms" component={Terms} />
          </div>
        </div>

        <Footer />
      </div>
    </div>
  </Router>;

export default App;

Related Query

More Query from same tag