import React from "react"; import { BrowserRouter as Router, Route } from 'react-router-dom'; import ReactDOM from 'react-dom'; const App = () => { return ( <div > <Route exact path="/" component={Home} /> <Route exact path="/about" component={About} /> <Route exact path="/contacts" component={Contacts} /> </div> ); }; export default App; ---
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter