How ClickToComponent works
mainClickToComponent allows you to navigate from the browser directly to your source code:
- Option+Click: Instantly opens the immediate Component's source in your editor.
- Option+Right-click: Opens a context menu containing the parent Component's
props,fileName,columnNumber, andlineNumber.
It relies on @babel/plugin-transform-react-jsx-source to function and supports vscode, vscode-insiders, and cursor via URL handling. It is designed to be faster and provide more context than React DevTools.