any-inspector
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

any-inspector

Inspect any state with Redux DevTools.

Usage

import { AnyInspector } from 'any-inspector';

<AnyInspector name="your-state-name" target={your-state} />

Example

import { AnyInspector } from 'any-inspector';
const App = () => {
  const [count, setCount] = useState(1);

  return (
    <>
      <button onClick={() => setCount(count + 1)}>{count}</button>

      {/* This line for inspect your state */}
      <AnyInspector name="count" target={count} />
    </>
  );
};

Readme

Keywords

none

Package Sidebar

Install

npm i any-inspector

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

15.7 kB

Total Files

14

Last publish

Collaborators

  • xcodebuild