@WebStormIDE For some reason, in the latest version of OSX WS (2019.1.3), I have lost my React intention that allows me to convert class components to functional components. I don't see it in the Refactor menu, I don't see it in the lightbulb menu. Not with Ctrl+T or Alt+Enter.
Can you please check if it works for something as simple as: https://gist.github.com/prigara/33b120d5a8fc9498c6e5065fc826836c … In general, this action is available only when the component doesn't reference the state and doesn't have any members other than render, propTypes, or defaultProps. Thanks!
-
-
Ok, I’ve discovered the following. If I put the caret within the name of the component, convert to class component is there. If I put the caret within the keyword “class”, convert to functional component shows up. I expected it to show up within the component name. Is that a bug?
-
Sounds like a bug, but we still can't reproduce it neither with a simple nor with a more complex component
(on the screenshot the cursor is inside `Welcome`)pic.twitter.com/OmES1F8fdU
- 6 more replies
New conversation -
-
-
Also, while I’ve got your attention, I can’t figure out how to make a project to use the new IDE theme customization. I tried following the instructions on your site, but the menu items to make a Jetbrains project do not exist in WebStorm as far as I can tell.
-
To create a plugin with a custom theme, you need to use IntelliJ IDEA. IJ Community should be enough:https://www.jetbrains.com/idea/download/#section=mac …
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.