gaurangu's picture
use react and make all functional not just interface and make it attractive UI
b9029a9 verified
Raw History Blame Contribute Delete
812 Bytes
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { useEffect } from 'react';
import Home from './pages/Home';
import Documentation from './pages/Documentation';
import Navbar from './components/Navbar';
import Footer from './components/Footer';
import './App.css';
function App() {
useEffect(() => {
const feather = require('feather-icons');
feather.replace();
}, []);
return (
<BrowserRouter>
<div className="flex flex-col min-h-screen bg-gray-50">
<Navbar />
<main className="flex-grow">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/documentation" element={<Documentation />} />
</Routes>
</main>
<Footer />
</div>
</BrowserRouter>
);
}
export default App;