text: import AllUsers from './Component/AllUsers';
  import AddUser from './Component/AddUser';
  import EditUser from './Component/EditUser';
  import NavBar from './Component/NavBar';
  import NotFound from './Component/NotFound'; 
  import CodeForInterview from './Component/Homepage';
  import { BrowserRouter, Route, Switch } from 'react-router-dom';
  
  function App() {
    return (
      <BrowserRouter>
        <NavBar />
        <Switch>
          <Route exact path="/" component={CodeForInterview} />
          <Route exact path="/all" component={AllUsers} />
          <Route exact path="/add" component={AddUser} />
          <Route exact path="/edit/:id" component={EditUser} />
          <Route component={NotFound} />
        </Switch>
      </BrowserRouter>
    );
  }
  
  export default App;
  