TIL @intellijidea/@WebStormIDE automatically converts React class components to functional and vice-versa.
Not sure which version added it, but I've been doing this manually since ever and this is great!
Now it would be fantastic if it preserved imports order and comments.
pic.twitter.com/NiA1Pf5g56
-
-
Tried that and it didn't affect this specific refactor. Different code path or maybe a bug?
-
Sorry, can only reproduce that when Sort imports by module and Sort imported members are checked in the code style settings.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.