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

Function Output

packages/react-dom/src/__tests__/ReactDOMForm-test.js:2090–2102  ·  view source on GitHub ↗
({value})

Source from the content-addressed store, hash-verified

2088
2089 it('useFormStatus is not activated if startTransition is not called', async () => {
2090 function Output({value}) {
2091 const {pending} = useFormStatus();
2092
2093 return (
2094 <Text
2095 text={
2096 pending
2097 ? 'Should be unreachable! This test should never activate the pending state.'
2098 : value
2099 }
2100 />
2101 );
2102 }
2103
2104 function App({value}) {
2105 async function onSubmit(event) {

Callers

nothing calls this directly

Calls 7

actFunction · 0.70
submitFunction · 0.70
renderMethod · 0.65
toThrowMethod · 0.65
toBeMethod · 0.65
useFormStatusFunction · 0.50
assertLogFunction · 0.50

Tested by

no test coverage detected