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

Function action

packages/react-dom/src/__tests__/ReactDOMForm-test.js:214–216  ·  view source on GitHub ↗
(formData)

Source from the content-addressed store, hash-verified

212 let foo;
213
214 function action(formData) {
215 foo = formData.get('foo');
216 }
217
218 const root = ReactDOMClient.createRoot(container);
219 await act(async () => {

Callers 1

Calls 2

getTextFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected