Hacker News new | ask | show | jobs
by spion 3361 days ago
Isn't there option (3) as well? Which would be, writing classes the old way, using prototypes and something like `util.inherits`
1 comments

That's basically what `createClass` does: https://github.com/facebook/react/blob/72196da82915bee400edb...