@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.
-
Show this thread
-
@WebStormIDE as you can see, in both menus, there's nothing to do with Component.pic.twitter.com/khqFqL2kBB
1 reply 0 retweets 0 likesShow this thread -
Replying to @stevensacks
Does it happen just for this component or all of them? If it doesn’t work only for this one, could you please create an issue with a code sample? If it’s all of them - please check if Preferences | Intentions | Convert to class/functional component are enabled
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Any and all. And I just discovered something. It only doesn't show up for converting class component to functional. Functional components show "Convert to class component".pic.twitter.com/AIyRVcwy0t
1 reply 0 retweets 1 like -
Replying to @stevensacks
Does it happen in a new project? If it does, please send it to us as a sample
1 reply 0 retweets 1 like -
Replying to @WebStormIDE
It happens in each and every React project I have. I can convert from functional to class, but not the other way.
1 reply 0 retweets 0 likes -
Replying to @stevensacks
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!
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
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.
1 reply 0 retweets 1 like
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 …
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.