You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Router/React_Router.jsx
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,26 +6,26 @@ import Data from "../components/Main-Section/Data/Data";
6
6
7
7
constReact_Router=()=>{
8
8
9
-
// how to create path and path component in react router
9
+
// how to create path and path component in react router . for that we havet to use react router createBrowserRouter function .
10
10
constrouter=createBrowserRouter([
11
11
12
12
{
13
-
//path declaration
13
+
//the path declaration . for that we have to use path react router keywords .
14
14
path: "/",
15
-
//path component
15
+
//the path component . for that we have to use element react router keywords .
16
16
element: <Main/>,
17
-
//child path and path component declaration
17
+
// the child path and path component declaration . sometimes we need some dynamic change in website without reaload the the website , for that we have to use react router children keywords .
0 commit comments