{"size": 763, "ext": "js", "max_stars_repo_path": "mushroom-app/frontend-react/src/app/AppRoutes.js", "max_stars_repo_name": "TangJiahui/AC215-Advanced_Practical_Data_Science", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "mushroom-app/frontend-react/src/app/AppRoutes.js", "max_issues_repo_name": "TangJiahui/AC215-Advanced_Practical_Data_Science", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "mushroom-app/frontend-react/src/app/AppRoutes.js", "max_forks_repo_name": "TangJiahui/AC215-Advanced_Practical_Data_Science", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.7916666667, "max_line_length": 101, "alphanum_fraction": 0.6002621232}
import React from "react";
import { Route, Switch, Redirect } from 'react-router-dom';
import Home from "../components/Home";
import Error404 from '../components/Error/404';
import Leaderboard from '../components/Leaderboard';
import Currentmodel from '../components/Currentmodel';

const AppRouter = (props) => {

  console.log("================================== AppRouter ======================================");

  return (
    <React.Fragment>
      <Switch>
        <Route path="/" exact component={Home} />
        <Route path="/leaderboard" exact component={Leaderboard} />
        <Route path="/currentmodel" exact component={Currentmodel} />
        <Route component={Error404} />
      </Switch>
    </React.Fragment>
  );
}

export default AppRouter;