mitosis
mitosis copied to clipboard
webcomponent: separate methods from state object
It would be a lot easier to diff the state object if it was just values. Following what vue did and create another namespace for methods is a good idea.
this.context = new Map();
this.props = {};
this.state = {};
this.methods = {};