3 ms·
OO tends to work pretty well for widgets fwiw.
by ufo 12y ago
OO tends to work pretty well for widgets fwiw.
- danabramov 12y agoI don't get why your parent is being downvoted. React's position is to avoid inheritance in favor of composition: https://github.com/facebook/react/issues/613#issuecomment-29280175 https://github.com/facebook/react/issues/613#issuecomment-29... This hasn't changed. The change in 0.13 has nothing to do with inheritance though. It's neither about classes nor about ES6. I wrote a comment explaining why: https://news.ycombinator.com/item?id=8959691 https://news.ycombinator.com/item?id=8959691