SolidJSS
SolidJSโ€ข6mo agoโ€ข
28 replies
adequate

Solid Element how to render children

customElement("x-component", {}, (props, { element }) => {
  return (
    <button>
      {props.children} /* This? */
      <slot></slot> /* Or this? */
    </button>
  );
})

I'm using solid element and I need to throw children into solid based web components but none of the options worked can you tell me how to implement this correctly?
Was this page helpful?