Convert into functional component not showing when i press Alt+Enter on my class component.

Answered

I have a web app working and with no compilation errors, i wanted to convert my class component into a functional component for clarity, but the option doesn't show when i press Alt+Enter, i does show the 'convert to class component' in another functional component i have in the same file, so i don't understand why it isn't working in this specific case.

0
2 comments

It's not supported for complex cases (components with lifecycle methods, instance methods, etc.). 

0

I installed it for this functionality alone, and it only works on the most simple cases? How disappointing.

0

Please sign in to leave a comment.