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

Function App

examples/files/react/memo.js:11–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const LabelMemo = memo(Label)
10
11export default function App() {
12 const [count, setCount] = useState(0)
13
14 return (
15 <>
16 <Button
17 title={`Pressed ${count} times`}
18 onPress={() => {
19 setCount(count + 1)
20 }}
21 />
22 <LabelMemo title="Label with memo" />
23 <Label title="Label" />
24 </>
25 )
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected