File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
JavaScript Interview/outputmcq/src Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import One from './component/One'
33import Two from './component/Two'
44import Three from './component/Three'
55
6+
67const App = ( ) => {
78 return (
89 < div >
910 < One />
1011 < Two />
1112 < Three />
13+
1214 </ div >
1315 )
1416}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const One = () => {
1010
1111 { /* If we click handleClickTwo increment by infinite */ }
1212 useEffect ( ( ) => {
13- setCounttwo ( ( pre ) => pre + 1 ) , [ count ]
14- } )
13+ setCounttwo ( ( counttwo ) => counttwo + 1 )
14+ } , [ counttwo ] )
1515
1616
1717 { /* If we click handleClickTwo increment by infinite */ }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import './index.css'
44import App from './App.jsx'
55
66createRoot ( document . getElementById ( 'root' ) ) . render (
7- < StrictMode >
7+
88 < App />
9- </ StrictMode > ,
9+
1010)
You can’t perform that action at this time.
0 commit comments