Skip to content
Snippets Groups Projects
Commit 1d304379 authored by Ashwanth K's avatar Ashwanth K
Browse files

Upload New File

parent 3a1526dc
Branches
No related tags found
No related merge requests found
import React, { Component } from 'react';
import './App.css';
import {BrowserRouter as Router,Route,Switch} from "react-router-dom";
import MainPage from './Components';
import Alogin from './Components/Admin/alogin';
import Slogin from './Components/Student/slogin';
import About from './Components/about/about';
import Student from './Components/Student/student-page';
import Admin from './Components/Admin/admin-page';
class App extends Component {
render() {
return <Router>
<Switch>
<Route exact path="/" component={MainPage} />
<Route exact path="/slogin" component={Slogin} />
<Route exact path="/alogin" component={Alogin} />
<Route exact path="/about" component={About} />
<Route exact path="/Home/:uid/:uname" component={Student}/>
<Route exact path='/Admin' component={Admin}/>
</Switch>
</Router>
}
}
export default App;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment