Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabbott/react-native-express
/ randomDiceRoll
Function
randomDiceRoll
examples/files/hooks/useStateArray.js:4–4 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
import
{ View, Text, Button } from
'react-native'
3
4
const
randomDiceRoll = () => Math.floor(Math.random() * 6) + 1
5
6
export
default
function
App() {
7
const
[diceRolls, setDiceRolls] = useState([])
Callers
1
useStateArray.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected