tosanoob's picture
Feature: add authentication, feeds and menu page
fab48db
raw
history blame contribute delete
641 Bytes
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import HomePage from './pages/HomePage';
import BasicTemplate from './templates/BasicTemplate';
import './styles/App.css';
// index.js hoặc App.js
import 'bootstrap/dist/css/bootstrap.min.css';
function App() {
return (
<Router>
<Routes>
{/* Định tuyến trang chủ */}
<Route path="/" element={<BasicTemplate/>} >
<Route path="*" element={<HomePage/>} />
</Route>
{/* Có thể thêm các route khác nếu cần */}
</Routes>
</Router>
);
}
export default App;