-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.jsx
55 lines (51 loc) · 1.36 KB
/
main.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import Product from './Component-Diamond/Product.jsx'
import Jhumka from './Component-Diamond/Pages/Jhumka.jsx'
import PrincessPossessionDiamondEarrings from './Component-Diamond/Pages/PrincessPossessionDiamondEarrings';
import HeroMain from './Hero Component/HeroMain';
import { Provider } from 'react-redux'
import { store } from './App/store.js'
import OurStory from './OurStory.jsx'
import NoorPage from './components conoor/NoorPage.jsx';
const router = createBrowserRouter([
{
path: '/',
element: <App />,
children: [
{
path: '',
element: <HeroMain />,
},
{
path: 'product',
element: <Product />,
},
{
path: 'jhumka',
element: <Jhumka />,
},
{
path: 'princess-possession-diamond-earrings',
element: <PrincessPossessionDiamondEarrings />,
},{
path:'story',
element:<OurStory/>
},
{
path:'noor',
element:<NoorPage/>
}
]
}
])
createRoot(document.getElementById('root')).render(
<StrictMode>
<Provider store={store}>
<RouterProvider router={router} />
</Provider>
</StrictMode>,
)