MCPcopy Create free account
hub / github.com/react/react / like

Function like

fixtures/flight/src/actions.js:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export async function like() {
10 // Test loading state
11 await sleep(1000);
12 setServerState('Liked!');
13 return new Promise((resolve, reject) => resolve('Liked'));
14}
15
16export async function greet(formData) {
17 const name = formData.get('name') || 'you';

Callers

nothing calls this directly

Calls 3

setServerStateFunction · 0.90
sleepFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected