mitosis
mitosis copied to clipboard
webcomponent: namespace helper functions
when we generate the code the helper functions such as update and render may conflict with any use defined method or prop. Later we may proxy the element for direct reference assign to update the prop or invoke any methods
const el = document.querySelector('my-component');
el.myProp = 'new Value';
the proxy should detect the props and assign it to .props
el.props.myProp