vite-plugin-react-click-to-component 
Option+Click React components in your browser to open the source in your editor.
Light version of ericclemmons/click-to-component that uses Vite's launch editor middleware to open the source code in your currently running editor.
Installation
npm i -D vite-plugin-react-click-to-component
In your Vite config:
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { reactClickToComponent } from "vite-plugin-react-click-to-component";
export default defineConfig({
plugins: [react(), reactClickToComponent()],
});