UNPKG

gogoast

Version:

The simplest tool to parse/transform/generate code by ast

13 lines 414 B
// Component({ // onInit() { // const data = calculateData(this.props); // console.log('picture calculateData', data); // this.data = calculateData(this.props); // const abc = calculateData(this.props); // // const abc = Object.assign(calculateData(this.props), {x: 1}) // this.data = abc; // this.data = { // x:1 // }; // } // })