Intellisense for React Components that are containers
Reading through the article(https://blog.jetbrains.com/webstorm/2015/10/working-with-reactjs-in-webstorm-coding-assistance/) I can see that If I define a component's proptypes all required fields will be added when I autocomplete with intellisense. Awesome! But I would like to know is if there is a way for Component to always generate as a container instead of being self-closing.
For example, I have a MenuItem that I would want to put text into and it autocompletes with:
`<MenuItem />`
but I would like it to autocomplete like:
`<MenuItem></MenuItem>`
Is there any way I can mark the Component so that Intellisense can autocomplete like this?
Please sign in to leave a comment.
Please see https://youtrack.jetbrains.com/issue/WEB-26468#comment=27-2337530: `MenuItem` + `Tab` should expand to `<MenuItem></MenuItem>`, `MenuItem/` + `Tab` - to `<MenuItem />`