Skip to content

Commit 9ba7932

Browse files
committed
Add image in doc
1 parent f59260b commit 9ba7932

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## 2.0.0
44

55
Context menu on option+right click to see all the intermediate components and jump to the right place!
6-
Direct click is remove for two reasons:
6+
Direct click is removed for two reasons:
77

88
- It doesn't play well with buttons and links
99
- In large apps, you often end up on the generic component instead of going inside the usage of it

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
Light version of [ericclemmons/click-to-component](https://github.com/ericclemmons/click-to-component) that uses Vite's launch editor middleware to open the source code in your currently running editor.
5+
![demo](https://media.webtoo.ls/media_attachments/files/109/913/790/489/646/235/original/58f3d38bb221f42e.jpg)
66

77
## Installation
88

@@ -21,3 +21,7 @@ export default defineConfig({
2121
plugins: [react(), reactClickToComponent()],
2222
});
2323
```
24+
25+
## Inspiration
26+
27+
This plugin is a light version of [ericclemmons/click-to-component](https://github.com/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.

0 commit comments

Comments
 (0)