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

Function ButtonDisabledWhilePending

fixtures/flight-esm/src/Button.js:9–19  ·  view source on GitHub ↗
({action, children})

Source from the content-addressed store, hash-verified

7const h = React.createElement;
8
9function ButtonDisabledWhilePending({action, children}) {
10 const {pending} = useFormStatus();
11 return h(
12 'button',
13 {
14 disabled: pending,
15 formAction: action,
16 },
17 children
18 );
19}
20
21export default function Button({action, children}) {
22 return h(

Callers

nothing calls this directly

Calls 1

useFormStatusFunction · 0.90

Tested by

no test coverage detected