MCPcopy
hub / github.com/BetaSu/big-react / App

Function App

demos/performance/Simple.tsx:3–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { useState } from 'react';
2
3export default function App() {
4 const [num, update] = useState(0);
5 console.log('App render ', num);
6 return (
7 <div
8 onClick={() => {
9 update(1);
10 }}
11 >
12 <Cpn />
13 </div>
14 );
15}
16
17function Cpn() {
18 console.log('cpn render');

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected