Home / Function/ doSync() — react Function Reference

doSync() — react Function Reference

Architecture documentation for the doSync() function in sync.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  24c690bc_3230_698f_a021_76c9780dc408["doSync()"]
  49203724_960c_c431_df58_f1a0bae56e21["sync.js"]
  24c690bc_3230_698f_a021_76c9780dc408 -->|defined in| 49203724_960c_c431_df58_f1a0bae56e21
  00e7665a_4d45_f007_9877_3b9089e085e9["syncReactDom()"]
  00e7665a_4d45_f007_9877_3b9089e085e9 -->|calls| 24c690bc_3230_698f_a021_76c9780dc408
  1a52ee14_c49a_9756_c75e_4c4da6723895["syncReactNativeHelper()"]
  1a52ee14_c49a_9756_c75e_4c4da6723895 -->|calls| 24c690bc_3230_698f_a021_76c9780dc408
  style 24c690bc_3230_698f_a021_76c9780dc408 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/rollup/sync.js lines 12–17

async function doSync(buildPath, destPath) {
  console.log(`${chalk.bgYellow.black(' SYNCING ')} React to ${destPath}`);

  await asyncCopyTo(buildPath, destPath);
  console.log(`${chalk.bgGreen.black(' SYNCED ')} React to ${destPath}`);
}

Domain

Subdomains

Frequently Asked Questions

What does doSync() do?
doSync() is a function in the react codebase, defined in scripts/rollup/sync.js.
Where is doSync() defined?
doSync() is defined in scripts/rollup/sync.js at line 12.
What calls doSync()?
doSync() is called by 2 function(s): syncReactDom, syncReactNativeHelper.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free