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

Function Status

fixtures/flight/src/Form.js:7–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import ErrorBoundary from './ErrorBoundary.js';
6
7function Status() {
8 const {pending} = useFormStatus();
9 return pending ? 'Saving...' : null;
10}
11
12export default function Form({action, children}) {
13 const [isPending, setIsPending] = React.useState(false);

Callers

nothing calls this directly

Calls 1

useFormStatusFunction · 0.90

Tested by

no test coverage detected