Naming
Simple but useful
export function MyComponent(){
return <>My component in react</>
}we recommend in Atomico
export const MyComponent = c(() => <host>My component in Atomico</host>);
customElements.define("my-component", MyComponent);import { MyComponent } from "./my-component";
function app(){
return <host>
<MyComponent/>
</host>
}import { MyComponent } from "./my-component";
const component = new MyComponen; import "./my-component";
const component = document.createElement("my-component");<my-component></my-component>Last updated
Was this helpful?
