MCPcopy Create free account
hub / github.com/dabbott/react-native-express / App

Function App

examples/files/hooks/useEffectWithNoDeps.js:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { Button } from 'react-native'
3
4export default function App() {
5 const [count, setCount] = useState(0)
6
7 useEffect(() => {
8 console.log('Incremented!')
9 })
10
11 return (
12 <Button
13 title={`Increment ${count}`}
14 onPress={() => {
15 setCount(count + 1)
16 }}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected