Home / Function/ syncReactDom() — react Function Reference

syncReactDom() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

scripts/rollup/sync.js lines 19–28

async function syncReactDom(buildPath, wwwPath) {
  wwwPath = typeof wwwPath === 'string' ? wwwPath : DEFAULT_WWW_PATH;

  if (wwwPath.charAt(wwwPath.length - 1) !== '/') {
    wwwPath += '/';
  }

  const destPath = resolvePath(wwwPath + RELATIVE_WWW_PATH);
  await doSync(buildPath, destPath);
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does syncReactDom() do?
syncReactDom() is a function in the react codebase, defined in scripts/rollup/sync.js.
Where is syncReactDom() defined?
syncReactDom() is defined in scripts/rollup/sync.js at line 19.
What does syncReactDom() call?
syncReactDom() calls 1 function(s): doSync.

Analyze Your Own Codebase

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

Try Supermodel Free