App.intermediate.jsx 571 Bytes
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from './pages/Home';
import NotFound from './pages/NotFound';

function IntermediateApp() {
  return (
    <Router>
      <div className="App">
        <main style={{ minHeight: 'calc(100vh - 160px)', backgroundColor: '#f8f9fa' }}>
          <Routes>
            <Route path="/" element={<Home />} />
            <Route path="*" element={<NotFound />} />
          </Routes>
        </main>
      </div>
    </Router>
  );
}

export default IntermediateApp;