Page 337 - MDP2022-3
P. 337

import  Home  from  "./screens/Home";
            import  Dashboard  from  "./screens/Dashboard";

            import  Navbar  from  "./components/Navbar";
            import  Class  from  "./screens/Class";



            function  App()  {



            //페이지  라우팅
                return  (
                    <div  className="app">

                        <Router>
                            <Routes>
                                <Route

                                    exact
                                    path="/"

                                    element={
                                        <>
                                            <Home  />

                                        </>
                                    }

                                />
                                <Route
                                    exact

                                    path="/dashboard"
                                    element={

                                        <>
                                            <Navbar  />
                                            <Dashboard  />

                                        </>
                                    }

                                />
                                <Route
                                    exact

                                    path="/class/:id"
                                    element={

                                        <>
                                            <Navbar  />
                                            <Class  />
   332   333   334   335   336   337   338   339   340   341   342