// BrowserRouter is the router implementation for HTML5 browsers (vs Native). // Link is your replacement for anchor tags. // Route is the conditionally shown component based on matching a path to a URL. // Switch returns only the first matching route rather than all matching routes. import { BrowserRouter as Router, Link, Route, Switch, } from 'react-router-dom'; import React from 'react'; const Home = () =>

Home

; const About = () =>

About

; // We give each route either a target `component`, or we can send functions in `render` or `children` // that return valid nodes. `children` always returns the given node whether there is a match or not. const App = () => (
Home{' '} About{' '} Contact

Contact Us

} /> (
  • Blog
  • )} />

    Page not found

    } />
    );