Home / Function/ SomeComponent() — react Function Reference

SomeComponent() — react Function Reference

Architecture documentation for the SomeComponent() function in error.invalid-non-imported-reanimated-shared-value-writes.jsx from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e720c181_5346_00e0_d203_247044d68a4b["SomeComponent()"]
  d0889e26_98d2_cef9_a173_a0f5ee86df0b["error.invalid-non-imported-reanimated-shared-value-writes.jsx"]
  e720c181_5346_00e0_d203_247044d68a4b -->|defined in| d0889e26_98d2_cef9_a173_a0f5ee86df0b
  style e720c181_5346_00e0_d203_247044d68a4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.invalid-non-imported-reanimated-shared-value-writes.jsx lines 7–15

function SomeComponent() {
  const sharedVal = useSharedValue(0);
  return (
    <Button
      onPress={() => (sharedVal.value = Math.random())}
      title="Randomize"
    />
  );
}

Subdomains

Frequently Asked Questions

What does SomeComponent() do?
SomeComponent() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.invalid-non-imported-reanimated-shared-value-writes.jsx.
Where is SomeComponent() defined?
SomeComponent() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.invalid-non-imported-reanimated-shared-value-writes.jsx at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free