Code completion for custom HTML tags in React / JSX
"WebStorm can also provide code completion for HTML tags and component names that you have defined inside methods in JavaScript or inside other components."
-- This is not happening; there is no dropdown showing component names that have already been defined in the same (index.js) file.
However, code completion for other aspects of JSX does work, for example div.class will code complete className.
WebStorm 2017.3.5
Build #WS-173.4674.32, built on March 6, 2018
Licensed to WebStorm Evaluator
Expiration date: April 18, 2018
JRE: 1.8.0_152-release-1024-b15 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Please sign in to leave a comment.
Please can you provide a file/code snippet we can use to recreate the issue?
I am posting an index.js below. Create React App is the tool I used to setup the project:
To me, components are available in completion (2018.1 RC):
Ok I see it too, I needed to use ES6 classes to see it