JSPM

@hocs/with-debugger

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q49250F
  • License

Debugger HOC for React and React Native

Package Exports

  • @hocs/with-debugger

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hocs/with-debugger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🔍 with-debugger

npm ci coverage deps

Part of a collection of Higher-Order Components for React, especially useful with Recompose.

Injects debugger into render.

Install

yarn add @hocs/with-debugger

Usage

withDebugger: HigherOrderComponent
import React from 'react';
import { compose, withProps } from 'recompose';
import withDebugger from '@hocs/with-debugger';

const Demo = () => (
  <h1>Hi</h1>
);

export default compose(
  withProps({ a: 1, b: 2, c: 3 }),
  withDebugger
)(Demo);