Hacker News new | past | comments | ask | show | jobs | submit login

I think so, but you'll probably miss `this.setState`.

They are moving out `setState` into a sideways module[1] so I assume full-featured classes without React.Component should be possible in the future.

[1]: https://github.com/facebook/react/commit/ed7332c74921874cdcb...




Indeed, it is not necessary to inherit form React.Component, see confirmation:

https://github.com/facebook/react/pull/2975#issuecomment-729...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: