Charles Stover
1 min readDec 22, 2017

--

Your Generate Props example doesn’t show an equivalent comparison. You can spread multiple objects in JSX. You give the illusion that your Generate Props method is cutting out lines of code by not having to explicitly define each property of this.state and this.props. A more accurate comparison would be <MyComponent {...this.props} {...this.state} onPinch={this._onPinch} onPress={this._onPress} />.

--

--