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 show how your component looks like? Only class components that don't reference `state` and don't have any members other than `render`, `propTypes`, or `defaultProps` can be converted to functional components.
-
-
Possible to refactor classses to functions using hooks for state?
-
Nothing that complicated. Just a plain class with no state.
- 3 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.