Update App.js

This commit is contained in:
AkhilBarthwal005 2020-10-25 13:19:22 +05:30 committed by GitHub
parent b8cd3d2fce
commit 8b5bb83908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 18 deletions

View File

@ -1,24 +1,17 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import React from "react";
import {BrowserRouter as Router ,Route ,Switch} from 'react-router-dom'
import Home from './components/home';
import Nav from './components/nav'
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<div>
<Router>
<Nav></Nav>
<Switch>
<Route exact path = "/" component = {Home} />
</Switch>
</Router>
</div>
);
}