Home / Function/ shim() — react Function Reference

shim() — react Function Reference

Architecture documentation for the shim() function in ReactFiberConfigWithNoMutation.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c8d461b0_b5a0_a545_652d_bc21786476d6["shim()"]
  88395a15_f54d_0781_5090_a41281371da4["ReactFiberConfigWithNoMutation.js"]
  c8d461b0_b5a0_a545_652d_bc21786476d6 -->|defined in| 88395a15_f54d_0781_5090_a41281371da4
  style c8d461b0_b5a0_a545_652d_bc21786476d6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberConfigWithNoMutation.js lines 13–19

function shim(...args: any): empty {
  throw new Error(
    'The current renderer does not support mutation. ' +
      'This error is likely caused by a bug in React. ' +
      'Please file an issue.',
  );
}

Domain

Subdomains

Frequently Asked Questions

What does shim() do?
shim() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberConfigWithNoMutation.js.
Where is shim() defined?
shim() is defined in packages/react-reconciler/src/ReactFiberConfigWithNoMutation.js at line 13.

Analyze Your Own Codebase

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

Try Supermodel Free