From 9ba7932d70c1c0902b74455226692d67fffe4e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Sun, 26 Feb 2023 21:56:11 +0100 Subject: [PATCH] Add image in doc --- CHANGELOG.md | 2 +- README.md | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e0903..0fc3cbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 3c4d0eb..c9a9021 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.