4 ms·
Wait, why did you refactor all things? I’m afraid you have been misinformed. :-( Please read the official release notes when upgrading. Nowhere does 0.14 say
by danabramov 11y ago
Wait, why did you refactor all things? I’m afraid you have been misinformed. :-(
Please read the official release notes when upgrading.
Nowhere does 0.14 say you need to change components to use classes. They are allowed now (since 0.13) but React.createClass() is still there and is not going away any time soon. I’m afraid you listened to bad advice.
- goldbrick 11y agoI was already using es6 classes so I didn't have the choice. I couldn't get 0.14 to work otherwise.
- danabramov 11y agoNot sure I understand you. You are saying that 1. Transitioning to 0.14 forced you to rewrite something (what? how? I assumed you meant transitioning to ES6 classes which wasn’t necessary but it seems like you meant something else) 2. What choice was it that you didn’t have? Just like 0.13, 0.14 (and 15 soon) allows you to use either ES6 classes or React.createClass(). Both approaches work and will keep working. What are you referring to? It would really help if you could share at least a simple code example demonstrating your pain points. I want to help! Cheers.