Skip to content

Commit

Permalink
Add demo videos/screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Apr 26, 2022
1 parent 9ef9296 commit f98c1b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/click-to-react-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@

<kbd>Option+Click</kbd> a Component in the browser to **instantly** goto the source in your editor.

![Next.js Demo](next.gif)

## Features

- <kbd>Option+Click</kbd> opens the immediate Component's source
- <kbd>Option+Right-click</kbd> opens a context menu with the parent Components' props, filename, column, and line number

> ![props](props.png)
- Works with frameworks like [Next.js](https://nextjs.org/),
[Create React App](https://create-react-app.dev/),
& [Remix](https://remix.run/) that uses [@babel/plugin-transform-react-jsx-source](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx-source)
Expand Down Expand Up @@ -69,6 +74,8 @@ Even though `click-to-react-component` is added to `dependencies`, [tree-shaking
);
```

> ![Create React App Demo](cra.gif)
</details>

<details>
Expand All @@ -90,6 +97,8 @@ Even though `click-to-react-component` is added to `dependencies`, [tree-shaking
)
```

> ![Next.js Demo](next.gif)
</details>

## Run Locally
Expand Down
Binary file added packages/click-to-react-component/cra.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/click-to-react-component/next.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/click-to-react-component/props.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f98c1b2

Please sign in to comment.