You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
446 B
TypeScript
22 lines
446 B
TypeScript
import React, { Component } from 'react';
|
|
import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom';
|
|
|
|
import Dashboard from '../dashboard/Dashboard';
|
|
|
|
import './App.css';
|
|
|
|
class App extends Component {
|
|
render() {
|
|
return(
|
|
<Router>
|
|
<div>
|
|
<Redirect from="/" to="dashboard" />
|
|
<Route path="/dashboard" component={Dashboard} />
|
|
</div>
|
|
</Router>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default App;
|