How to find all React component references in VS Code
// jsconfig.json
{
"compilerOptions": {
"jsx": "react"
}
}
February 18th, 2022
The native way in VS Code to find references of a function is to right-click the function's name and choose Find All References. But this won't work for JSX files.
An easy fix can be to create a jsconfig.json
in the project root with this snippet.