{"size": 443, "ext": "js", "max_stars_repo_path": "resources/js/routes/index.js", "max_stars_repo_name": "davidking892/react-laravel-instagram", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/routes/index.js", "max_issues_repo_name": "davidking892/react-laravel-instagram", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/routes/index.js", "max_forks_repo_name": "davidking892/react-laravel-instagram", "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": 23.3157894737, "max_line_length": 74, "alphanum_fraction": 0.5056433409}
import React from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import routes from "./route";
import Public from "./Public";

const Routes = () => {
    return (
        <Router>
            <Switch>
                {routes.map((route, index) => {
                    return <Public key={index} {...route} />;
                })}
            </Switch>
        </Router>
    );s
};

export default Routes;
