{"id":17172211,"url":"https://github.com/lucasconstantino/react-inspect-props","last_synced_at":"2025-11-05T02:02:54.097Z","repository":{"id":52263317,"uuid":"109448933","full_name":"lucasconstantino/react-inspect-props","owner":"lucasconstantino","description":"React properties inspector with the power of Redux DevTools","archived":false,"fork":false,"pushed_at":"2021-05-02T20:31:14.000Z","size":137,"stargazers_count":33,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T16:41:18.079Z","etag":null,"topics":["devtools","inspector","react"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasconstantino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-03T22:40:46.000Z","updated_at":"2025-03-31T11:38:50.000Z","dependencies_parsed_at":"2022-09-12T02:50:48.373Z","dependency_job_id":null,"html_url":"https://github.com/lucasconstantino/react-inspect-props","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Freact-inspect-props","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Freact-inspect-props/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Freact-inspect-props/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Freact-inspect-props/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasconstantino","download_url":"https://codeload.github.com/lucasconstantino/react-inspect-props/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248743731,"owners_count":21154727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","inspector","react"],"created_at":"2024-10-14T23:36:24.682Z","updated_at":"2025-11-05T02:02:54.091Z","avatar_url":"https://github.com/lucasconstantino.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Inspect Props [![Build Status](https://travis-ci.org/lucasconstantino/react-inspect-props.svg?branch=master)](https://travis-ci.org/lucasconstantino/react-inspect-props)\n\n\u003e React properties inspector with the power of Redux DevTools\n\n## Install\n\n#### 1. Install [Redux DevTools](http://extension.remotedev.io/#installation) extension\n\n#### 2. `yarn add react-inspect-props`\n\n\u003e Or, good ol' `npm install --save react-inspect-props`\n\n## Usage\n\nThis lib provides a single Higher-Order Component called `inspectProps` with the following signature:\n\n```js\ninspectProps(\n  name: string,\n  options: Object | (props: Object) =\u003e Object\n): HigherOrderComponent\n```\n\nThis HoC will transparently connect your component to a new instance of the the Redux DevTools extension, identified by the name provided as first argument.\n\nThe second argument is optional. If provided, the object will be used when connecting to the extension. If a function is provided, it will eb executed passing pros as the argument. Refer to the [documentation](http://extension.remotedev.io/docs/API/Arguments.html) of that method for more info.\n\n### Simple as can\n\n```js\nimport React from 'react'\nimport { compose, withState } from 'recompose'\nimport { inspectProps } from 'react-inspect-props'\n\nconst Counter = ({ count, setCount }) =\u003e (\n  \u003cdiv\u003e\n    \u003cbutton onClick={ () =\u003e setCount(++count) }\u003e\n      Increment\n    \u003c/button\u003e\n    \u003cpre\u003e{ count }\u003c/pre\u003e\n  \u003c/div\u003e\n)\n\nexport default compose(\n  withState('count', 'setCount', 0),\n  inspectProps('Counter inspector')\n)(Counter)\n\n```\n\n\u003e See a demo video: https://www.useloom.com/share/abaf237e04e94ac8a9f694e1cc063e4f\n\n### Disable on production\n\n\n\n## License\n\nCopyright (c) 2017 Lucas Constantino Silva\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Freact-inspect-props","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasconstantino%2Freact-inspect-props","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Freact-inspect-props/lists"}