Ok @WebStormIDE , how do you get the “Convert to Functional Component” to work? No matter what I select, it stays greyed out
Can you please share a code sample to help us reproduce the problem?
-
-
so if you have any event or lifecycle in the class it cannot convert it to a functional component? If thats the case, it is not very useful as if all you have is render and props... one line of code away from being functional
-
Can you please provide an example showing how a class component that has lifecycle methods should be converted to a function? Do you want to use hooks?
End of conversation
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.