Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

"trace" like component?  #426

@alex-wilmer

Description

@alex-wilmer

I use this all the time. it's just for dev, so maybe something that can be stripped in prod. but seems like a useful addition here. thoughts?

(non-recompose simple version)

export default C => p => (
  console.info(
    `%ctracing ${C.displayName} props:\n==========================`,
    'color: rgb(22, 138, 96);font-weight: bold;',
  ), // eslint-disable-line
  console.log(p), // eslint-disable-line
  <C {...p} />
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions