Home / File/ ProxyComponent.jsx — astro Source File

ProxyComponent.jsx — astro Source File

Architecture documentation for ProxyComponent.jsx, a javascript file in the astro codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  de089dff_a9ab_8dd2_f6a5_d406acadce42["ProxyComponent.jsx"]
  41dbb6b2_2ef8_5fd9_e7a0_ad05bd506af4["web"]
  de089dff_a9ab_8dd2_f6a5_d406acadce42 --> 41dbb6b2_2ef8_5fd9_e7a0_ad05bd506af4
  style de089dff_a9ab_8dd2_f6a5_d406acadce42 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Dynamic } from 'solid-js/web'

const BaseComponent = ({ tag } = {}) => {
  return <Dynamic id="proxy-component" component={tag || 'div'}>Hello world</Dynamic>;
}

// Motion uses a Proxy to support syntax like `<Motion.div />` and `<Motion.button />` etc
// https://cdn.jsdelivr.net/npm/@motionone/solid@10.14.2/dist/source/motion.jsx
const ProxyComponent = new Proxy(BaseComponent, {
  get: (_, tag) => (props) => {
    delete props.tag
    return <BaseComponent {...props} tag={tag} />;
  }
})

export default ProxyComponent;

Subdomains

Dependencies

  • web

Frequently Asked Questions

What does ProxyComponent.jsx do?
ProxyComponent.jsx is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain, ReactIntegration subdomain.
What functions are defined in ProxyComponent.jsx?
ProxyComponent.jsx defines 2 function(s): BaseComponent, ProxyComponent.get.
What does ProxyComponent.jsx depend on?
ProxyComponent.jsx imports 1 module(s): web.
Where is ProxyComponent.jsx in the architecture?
ProxyComponent.jsx is located at packages/astro/test/fixtures/solid-component/src/components/ProxyComponent.jsx (domain: IntegrationAdapters, subdomain: ReactIntegration, directory: packages/astro/test/fixtures/solid-component/src/components).

Analyze Your Own Codebase

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

Try Supermodel Free