|
94 | 94 |
|
95 | 95 | - after you running the command you can see a folder `LoginSignUp` in path `src/components` in your Project |
96 | 96 |
|
97 | | -- after done this you have to update App.jsx file in the project |
98 | 97 |
|
99 | | -``` jsx |
100 | | - |
101 | | - |
102 | | -import { BrowserRouter, Route, Routes } from "react-router-dom"; |
103 | | -import SignIn from "./components/LoginSignUp/SignIn"; // Importing the Templete the created by run npm package |
104 | | -import SignUp from "./components/LoginSignUp/SignUp"; // Importing the Templete the created by run npm package |
105 | | - |
106 | | -export default function App() { |
107 | | - return ( |
108 | | - <BrowserRouter> |
109 | | - <Routes> |
110 | | - |
111 | | - {/* declare the Route */} |
112 | | - {/* the path can change whatever you want */} |
113 | | - <Route path="/" element={<SignIn />} /> |
114 | | - <Route path="/SignUp" element={<SignUp />} /> |
115 | | - |
116 | | - </Routes> |
117 | | - </BrowserRouter> |
118 | | - ) |
119 | | -} |
120 | | -``` |
121 | 98 | <hr> |
122 | 99 |
|
123 | 100 |
|
@@ -151,31 +128,13 @@ export default function App() { |
151 | 128 |
|
152 | 129 | - after you running the command you can see a folder `LoginSignUpTW` in path `src/components` in your Project |
153 | 130 |
|
154 | | -- after done this you have to update App.jsx file in the project |
155 | | - |
156 | | -``` jsx |
157 | | - |
158 | | - |
159 | | -import { BrowserRouter, Route, Routes } from "react-router-dom"; |
160 | | -import SignIn from "./components/LoginSignUpTW/SignIn"; // Importing the Templete the created by run npm package |
161 | | -import SignUp from "./components/LoginSignUpTW/SignUp"; // Importing the Templete the created by run npm package |
| 131 | +<hr> |
162 | 132 |
|
163 | | -export default function App() { |
164 | | - return ( |
165 | | - <BrowserRouter> |
166 | | - <Routes> |
| 133 | +## BackEnd |
167 | 134 |
|
168 | | - {/* declare the Route */} |
169 | | - {/* the path can change whatever you want */} |
170 | | - <Route path="/" element={<SignIn />} /> |
171 | | - <Route path="/SignUp" element={<SignUp />} /> |
| 135 | +- After you install package |
172 | 136 |
|
173 | | - </Routes> |
174 | | - </BrowserRouter> |
175 | | - ) |
176 | | -} |
177 | | -``` |
178 | | -<hr> |
| 137 | +- |
179 | 138 |
|
180 | 139 |
|
181 | 140 | # Screen Shorts |
|
0 commit comments