Skip to content

Commit

Permalink
Add image in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed Feb 26, 2023
1 parent f59260b commit 9ba7932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 2.0.0

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

- It doesn't play well with buttons and links
- In large apps, you often end up on the generic component instead of going inside the usage of it
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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.
![demo](https://media.webtoo.ls/media_attachments/files/109/913/790/489/646/235/original/58f3d38bb221f42e.jpg)

## Installation

Expand All @@ -21,3 +21,7 @@ export default defineConfig({
plugins: [react(), reactClickToComponent()],
});
```

## Inspiration

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 comments on commit 9ba7932

Please sign in to comment.