jongacnik / monoapp-react

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

Extending component prototype breaks internal properties #3

Closed jongacnik closed 6 years ago

jongacnik commented 6 years ago

This is re: https://github.com/choojs/choop/issues/15 where our method of copying the component class breaks some internal properties. Need to come up with an alt method, or, just directly extend the React.Component class but that seems very anti-pattern.

jongacnik commented 6 years ago

Fixed! https://github.com/jongacnik/monoapp-react/commit/956a97209fe571d2b032d67047be4889f828ce82