🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

vite-plugin-react-click-to-component

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-react-click-to-component

Option+Right Click in your browser to open the source in your editor

latest
Source
npmnpm
Version
4.2.2
Version published
Weekly downloads
65K
6.02%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-react-click-to-component npm

Option+Right Click in your browser to open the source in your editor.

demo

Installation

npm i -D vite-plugin-react-click-to-component

In your Vite config:

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react"; // or @vitejs/plugin-react-swc
import { reactClickToComponent } from "vite-plugin-react-click-to-component";

export default defineConfig({
  plugins: [react(), reactClickToComponent()],
});

For frameworks not using transformIndexHtml hook (like React Router 7 framework mode)

[!NOTE] If you're unsure, try first without adding this import

Add this somewhere in your entry file (like src/main.tsx):

import "vite-plugin-react-click-to-component/client";

Inspiration

This plugin is a light version of ericclemmons/click-to-component that uses Vite's launch editor middleware to open the source code in your currently running editor. This also benefits from Vite's transformIndexHtml hook so that you don't need to modify your source code.

Keywords

vite

FAQs

Package last updated on 19 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts