Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuboptimalEng/coding-tutorials
/ addToDo
Function
addToDo
react-redux-todo/src/AppWithReactHooks.tsx:37–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
35
};
36
37
const addToDo = () => {
38
setToDos([
39
...toDos,
40
{
41
id: Math.floor(Math.random() * 1000),
42
text: toDo,
43
completed: false,
44
},
45
]);
46
setToDo(
''
);
47
};
48
49
return (
50
<div className=
"App "
>
Callers
1
AppWithReactHooks
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected