The Inspector launch with Ctrl+Shift+X (Command+Shift+X on Mac). You can detect and open the React component source code easily.

Latest Version

Version
1.2.3
Update
April 16, 2023
Size
26.91KiB
Developer
Category
Users
6,000+
Rating
3.75 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
ContextMenus
Storage
See more

React Inspector Extension

Easily detect React components source code from Chrome!

■Requirements
・Installed React Developer Tools
・Works only with development builds.
・Source code must be stored on local disk

■How it works
The React Inspector accesses the __REACT_DEVTOOLS_GLOBAL_HOOK__ set globally by the React Devtools and finds the React Fiber in the HTML element that the inspector hovered over. The React Fiber contains information about the source code that will be added during development, so we use that information to open the editor.

Detail: https://dev.to/handdot/published-chrome-extension-for-streamlined-react-development-23b

■Options
It is possible to change the 'Open in Editor URL' from the extension's options page so that you can open it in an editor other than VSCode.

■Source Code
This extension is Open source. so you can access from https://github.com/hand-dot/react-inspector.
If you find a bug, please report it via Github!
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "React Inspector", "description": "The Inspector launch with Ctrl+Shift+X (Command+Shift+X on Mac). You can detect and open the React component source code easily.", "icons": { "16": "icon/icon16.png", "48": "icon/icon48.png", "128": "icon/icon128.png" }, "action": { "default_title": "React Inspector: Press Ctrl+Shift+X (Command+Shift+X on Mac)" }, "version": "1.2.3", "content_scripts": [ { "js": [ "assets/content-script-loader.content.ts.aa66660e.526aa3f4.js" ], "matches": [ "" ] } ], "devtools_page": "src/devtools.html", "options_page": "src/options.html", "background": { "service_worker": "service-worker-loader.js", "type": "module" }, "commands": { "inspect": { "suggested_key": { "default": "Ctrl+Shift+X", "mac": "Command+Shift+X" }, "description": "Inspect the page using the \\"React Inspector\\" extension." } }, "permissions": [ "activeTab", "contextMenus", "storage" ], "web_accessible_resources": [ { "matches": [ "" ], "resources": [ "assets/constants.918f8f6b.js", "assets/content-main-world.8c44456d.js", "assets/content.ts.aa66660e.js" ], "use_dynamic_url": true } ]}
Read more

How to download and manually install React Inspector extension for Chrome

Looking for a way to install React Inspector extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install React Inspector extensions manually, this article outlines two simple methods to effortlessly install React Inspector extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download React Inspector extension and manually install through Drag &Drop

If you ever need to manually install a React Inspector extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the React Inspector Extension by clicking the "Download CRX" button on the website.

Look for the React Inspector extension you wish to install. Go to the website and download the React Inspector extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for React Inspector extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the React Inspector extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download React Inspector extension for Chrome and install in Developer Mode

This is another method to install React Inspector extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the React Inspector extension file

Select and download the React Inspector extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the React Inspector extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your React Inspector extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the React Inspector extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install React Inspector extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

click-to-react-component Extension · Developer Tools 6,000+ 5 ★ 79.5KiB

icon

Extract to React Extension · Developer Tools 6,000+ 7 ★ 489KiB

icon

React Context DevTool Extension · Developer Tools 6,000+ 21 ★ 2.35MiB

icon

React Hook Form Developer Tools Extension · Developer Tools 6,000+ 7 ★ 117KiB

icon

React Monitor Extension · Productivity 6,000+ 0 ★ 1.3MiB

icon

Redux DevTools Extension · Developer Tools 6,000+ 726 ★ 1.2MiB

icon

HTML to React Extension · Developer Tools 6,000+ 4 ★ 342KiB

icon

React VT Extension · Developer Tools 6,000+ 2 ★ 1.51MiB

icon

C-React Extension · Developer Tools 6,000+ 4 ★ 701KiB

icon

Realize for React Extension · Developer Tools 6,000+ 7 ★ 160KiB

icon

React code finder Extension · Developer Tools 6,000+ 5 ★ 2.95MiB

icon

LocatorJS Extension · Developer Tools 6,000+ 64 ★ 190KiB

icon

React Performance Devtool Extension · Developer Tools 6,000+ 11 ★ 170KiB

icon

Reactime Extension · Developer Tools 6,000+ 33 ★ 803KiB

icon

Jinno: code any React component with AI Extension · Developer Tools 6,000+ 38 ★ 18.37MiB

icon

React Stores Devtools Extension Extension · Developer Tools 6,000+ 0 ★ 716KiB

icon

Next.js Explorer - NextJS App & Pages Router Extension · Developer Tools 6,000+ 4 ★ 160KiB

icon

Apollo Client Devtools Extension · Developer Tools 6,000+ 266 ★ 490KiB

icon

Next DevTools Extension · Developer Tools 6,000+ 7 ★ 67.98KiB

icon

GraphQL Network Inspector Extension · Developer Tools 6,000+ 123 ★ 8.34MiB

icon

Gimli Tailwind Extension · Developer Tools 6,000+ 33 ★ 151KiB

icon

Tailwind CSS Devtools Extension · Developer Tools 6,000+ 7 ★ 857KiB

icon

React Developer Tools Extension · Developer Tools 6,000+ 1576 ★ 1.56MiB

icon

Recoilize Extension · Developer Tools 6,000+ 10 ★ 11.42MiB