MCPcopy
hub / github.com/facebook/react / Form

Function Form

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js:6408–6416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6406
6407 const childRef = React.createRef(null);
6408 function Form() {
6409 const [state] = useActionState(action, 0);
6410 const text = `Child: ${state}`;
6411 return (
6412 <div id="child" ref={childRef}>
6413 {text}
6414 </div>
6415 );
6416 }
6417
6418 function App() {
6419 return (

Callers

nothing calls this directly

Calls 2

readTextFunction · 0.70
useActionStateFunction · 0.50

Tested by

no test coverage detected