3 ms·
Isn't there option (3) as well? Which would be, writing classes the old way, using prototypes and something like `util.inherits`
by spion 10y ago
Isn't there option (3) as well? Which would be, writing classes the old way, using prototypes and something like `util.inherits`
- acemarke 10y agoThat's basically what `createClass` does: https://github.com/facebook/react/blob/72196da82915bee400edb1599d4223926aa2a8a0/src/isomorphic/classic/class/ReactClass.js#L726-L831 https://github.com/facebook/react/blob/72196da82915bee400edb...