Skip to content

Commit 715f4bc

Browse files
committed
update
1 parent 357fa67 commit 715f4bc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

JavaScript Interview/outputmcq/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import One from './component/One'
33
import Two from './component/Two'
44
import Three from './component/Three'
55

6+
67
const App = () => {
78
return (
89
<div>
910
<One/>
1011
<Two/>
1112
<Three/>
13+
1214
</div>
1315
)
1416
}

JavaScript Interview/outputmcq/src/component/One.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 */}

JavaScript Interview/outputmcq/src/main.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import './index.css'
44
import App from './App.jsx'
55

66
createRoot(document.getElementById('root')).render(
7-
<StrictMode>
7+
88
<App />
9-
</StrictMode>,
9+
1010
)

0 commit comments

Comments
 (0)