Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coolvasanth/reactjs_interview_preparation
/ increment
Function
increment
src/HardQuestions/Exercise10.js:6–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
const
[count, setCount] = useState(0);
5
6
const
increment = () => {
7
setCount(count + 1);
8
setCount(count + 1);
9
};
10
11
return
(
12
<div>
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected