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

Function App

demos/test-fc/main.tsx:4–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import ReactDOM from 'react-dom';
3
4function App() {
5 const [num, update] = useState(100);
6 return (
7 <ul onClick={() => update(50)}>
8 {new Array(num).fill(0).map((_, i) => {
9 return <Child key={i}>{i}</Child>;
10 })}
11 </ul>
12 );
13}
14
15function Child({ children }) {
16 const now = performance.now();

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected