Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dabbott/react-native-express
/ createItem
Function
createItem
examples/files/app/todos.js:3–3 ·
view source on GitHub ↗
(title)
Source
from the content-addressed store, hash-verified
1
const
randomId = () => Math.random().toString()
2
3
const
createItem = (title) => ({ id: randomId(), title })
4
5
const
types = {
6
ADD:
'ADD'
,
Callers
1
todos.js
File · 0.85
Calls
1
randomId
Function · 0.85
Tested by
no test coverage detected