🤖Wrapper for React
Rules
1. The file that declares the customElement must export the customElement.
import {Component} from "./component";
export {Component} from "./component";
customElements.define("my-component", MyComponent);import {c} from "./my-component";
function component(){
return <host></host>;
}
export const Component = c(c);
customElements.define("my-component", Component);2. Compile your components using your favorite bundle tool.
3. Point via expressions to the files generated by your bundle tool
exports ./dist/**/* ./types/**/* --wrappersExample
Last updated
Was this helpful?
