Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-inspector

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-inspector

Power of Browser DevTools inspectors right inside your React app

  • 5.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
increased by1.2%
Maintainers
3
Weekly downloads
 
Created

What is react-inspector?

The react-inspector npm package provides a set of development tools for inspecting React component hierarchies in the Chrome Developer Tools. It allows developers to view the current state and props of the components, and also provides a tree view to navigate through the component hierarchy. It is similar to the React Developer Tools extension but can be embedded directly into a React application.

What are react-inspector's main functionalities?

Object Inspector

The Object Inspector allows you to render an interactive tree view of a JavaScript object. It is useful for displaying objects in a more readable format within your React application.

{"<ObjectInspector data={{ a: 1, b: 'string', c: true, d: { nested: 'object' } }} />"}

Table Inspector

The Table Inspector provides a tabular view of arrays or objects. It is particularly useful for displaying a collection of objects in a table format, with sorting capabilities.

{"<TableInspector data={[{ id: 1, name: 'John Doe' }, { id: 2, name: 'Jane Doe' }]} />"}

DOM Inspector

The DOM Inspector is used to inspect and display the DOM tree of an HTML element. It can be used to explore the structure of a web page within a React component.

{"<DOMInspector data={document.body} />"}

Other packages similar to react-inspector

Keywords

FAQs

Package last updated on 15 Apr 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc