MCPcopy Index your code
hub / github.com/react/react / Status

Function Status

fixtures/flight-esm/src/Form.js:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const h = React.createElement;
8
9function Status() {
10 const {pending} = useFormStatus();
11 return pending ? 'Saving...' : null;
12}
13
14export default function Form({action, children}) {
15 const [isPending, setIsPending] = React.useState(false);

Callers

nothing calls this directly

Calls 1

useFormStatusFunction · 0.90

Tested by

no test coverage detected