Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 Winter 2026 batch! Applications are open till Nov 10

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

Search: