Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 1.12 KB

readme.md

File metadata and controls

34 lines (24 loc) · 1.12 KB

🔍 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);