mitosis icon indicating copy to clipboard operation
mitosis copied to clipboard

webcomponent: namespace helper functions

Open PatrickJS opened this issue 3 years ago • 0 comments

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

PatrickJS avatar May 23 '22 14:05 PatrickJS