jongacnik / monoapp-react

monoapp plugin to use React as a view layer
11 stars 2 forks source link

Added ES5 compatibility without breaking constructor props #4

Closed louiscenter closed 6 years ago

louiscenter commented 6 years ago

Reverts the changes made in #3, but still fixes the original problem of not being able to access this.props from constructor inside a new component.

Discovered while trying to get monoapp-react working with parcel-bundler. Seems like using an ES6 class inside of monoapp-react won't play nicely with parcel-bundler's default browserslist settings.

jongacnik commented 6 years ago

Great!