Home / Function/ Router() — react Function Reference

Router() — react Function Reference

Architecture documentation for the Router() function in for-of-immutable-collection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  99299923_219d_b68a_f411_79073283cc0f["Router()"]
  39db20e7_bb92_6642_b29a_6b3509a580fe["for-of-immutable-collection.js"]
  99299923_219d_b68a_f411_79073283cc0f -->|defined in| 39db20e7_bb92_6642_b29a_6b3509a580fe
  style 99299923_219d_b68a_f411_79073283cc0f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/for-of-immutable-collection.js lines 1–7

function Router({title, mapping}) {
  const array = [];
  for (let [, entry] of mapping) {
    array.push([title, entry]);
  }
  return array;
}

Subdomains

Frequently Asked Questions

What does Router() do?
Router() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/for-of-immutable-collection.js.
Where is Router() defined?
Router() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/for-of-immutable-collection.js at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free