Spaces:
Sleeping
Sleeping
File size: 641 Bytes
391b583 fab48db 391b583 fab48db 391b583 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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;
|