1import React from "react";
2import ReactDOM from "react-dom";
3import { BrowserRouter as Router, Route } from "react-router-dom";
4
5ReactDOM.render(
6 <Router>
7 <div>
8 <Route exact path="/">
9 <Home />
10 </Route>
11 <Route path="/news">
12 <NewsFeed />
13 </Route>
14 </div>
15 </Router>,
16 node
17);
18