1
1
import ReactDom from 'react-dom/client' ;
2
2
3
+
4
+ import 'bootstrap/dist/js/bootstrap.bundle.min' ;
5
+ import 'bootstrap/dist/css/bootstrap.min.css' ;
6
+
3
7
// event handling
4
8
// import { BaseComponnet } from './eventHadlers/parent-component';
5
9
@@ -30,8 +34,10 @@ import {ConditinalRendering} from './conditinal/conditional-rendering';
30
34
//Hooks
31
35
import { UseEffectHook } from './hooks/use-effect' ;
32
36
import { UseRefHook } from './hooks/use-ref' ;
33
- import { CustomeHook } from './hooks/custom-hook' ;
34
- import { TestCustomeHook } from './hooks/custom-hook-exaple'
37
+ // import {CustomeHook} from './hooks/custom-hook';
38
+ // import {TestCustomeHook} from './hooks/custom-hook-exaple';
39
+
40
+ import { UseMemo } from './hooks/use-memo' ;
35
41
36
42
//LocalFiles
37
43
import { LocalFiles } from './local-files/local-file' ;
@@ -42,6 +48,18 @@ import {RouterMain} from './react-router/router-main';
42
48
// list
43
49
import { List } from './list/list' ;
44
50
51
+
52
+ // Props-drill down
53
+
54
+ import { ProspDrill } from './props-drill-down/props-dril' ;
55
+
56
+ // Props & events
57
+ import { Parent } from './propsEvents/props' ;
58
+
59
+
60
+ // how to add bootstrap
61
+ import { Bootstrap } from './bootstap/bootyrap' ;
62
+
45
63
const root = ReactDom . createRoot ( document . getElementById ( "root" ) )
46
64
47
65
root . render (
@@ -63,10 +81,22 @@ root.render(
63
81
// <UseEffectHook></UseEffectHook>
64
82
// <UseRefHook></UseRefHook>
65
83
// <CustomeHook></CustomeHook>
66
- < TestCustomeHook > </ TestCustomeHook >
84
+ // <TestCustomeHook></TestCustomeHook>
85
+ // <UseMemo></UseMemo>
67
86
68
87
// router
69
88
// <RouterMain></RouterMain>
70
89
90
+
91
+ // Propds drill with USEcONTEXT
92
+ // <ProspDrill></ProspDrill>
93
+
94
+ // Props & event
95
+ // <Parent></Parent>
96
+
97
+ //Bootstrap
98
+ < Bootstrap > </ Bootstrap >
99
+
100
+
71
101
) ;
72
102
0 commit comments