{"size": 594, "ext": "js", "max_stars_repo_path": "frontend/src/App.js", "max_stars_repo_name": "fikrianggara/MERN-ecommerce", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "frontend/src/App.js", "max_issues_repo_name": "fikrianggara/MERN-ecommerce", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/src/App.js", "max_forks_repo_name": "fikrianggara/MERN-ecommerce", "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": 28.2857142857, "max_line_length": 75, "alphanum_fraction": 0.6195286195}
import Home from './pages/Home';
import ProductList from './pages/ProductList';
import NoPage from './pages/NoPage';
import Product from './pages/ProductDetails';
import { BrowserRouter, Routes, Route } from "react-router-dom";

function App() {
  return (
    <BrowserRouter>
      <Routes>
          <Route index element={<Home />} />
          <Route path="product-list" element={<ProductList />} />
          <Route path='product/:category/:id' element={<Product/>}></Route>
          <Route path="*" element={<NoPage />} />
      </Routes>
    </BrowserRouter>
  );
}

export default App;
