Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
click-to-react-component-intellij
Advanced tools
Readme
Option+Click a Component in the browser to instantly goto the source in your editor.
Option+Click opens a context menu with the parent Components' props
, fileName
, columnNumber
, and lineNumber
Option+Right-click opens a context menu with the parent Components' props
, fileName
, columnNumber
, and lineNumber
Works with frameworks like Next.js, Create React App, & Vite that use @babel/plugin-transform-react-jsx-source
Supports vscode
& vscode-insiders
' URL handling
Automatically tree-shaken from production
builds
Keyboard navigation in context menu (e.g. ←, →, ⏎)
More context & faster than using React DevTools:
npm install click-to-react-component-intellij
pnpm add click-to-react-component-intellij
yarn add click-to-react-component-intellij
Even though click-to-react-component
is added to dependencies
, tree-shaking will remove click-to-react-component
from production
builds.
+import { ClickToComponent } from 'click-to-react-component';
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
@@ -8,7 +7,6 @@ import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
+ <ClickToComponent />
<App />
</React.StrictMode>
);
+import { ClickToComponent } from 'click-to-react-component'
import type { AppProps } from 'next/app'
import '../styles/globals.css'
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
+ <ClickToComponent />
<Component {...pageProps} />
</>
)
+import { ClickToComponent } from "click-to-react-component";
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
+ <ClickToComponent />
</React.StrictMode>
);
editor
-<ClickToComponent />
Go to the project directory
cd click-to-component
Install dependencies
pnpm install
Run one of the examples:
cd apps/cra
pnpm start
cd apps/next
pnpm dev
FAQs
Option+Click your React components in your browser to open the source file in intellij
The npm package click-to-react-component-intellij receives a total of 82 weekly downloads. As such, click-to-react-component-intellij popularity was classified as not popular.
We found that click-to-react-component-intellij demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.