{"id":21694124,"url":"https://github.com/fvilers/disable-react-devtools","last_synced_at":"2026-03-09T19:34:19.081Z","repository":{"id":34207055,"uuid":"171239374","full_name":"fvilers/disable-react-devtools","owner":"fvilers","description":"A simple method to disable the React Developer Tools addon to access your application","archived":false,"fork":false,"pushed_at":"2022-03-21T06:34:09.000Z","size":14,"stargazers_count":72,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-25T18:33:19.625Z","etag":null,"topics":["react"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/fvilers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"fvilers"}},"created_at":"2019-02-18T07:57:20.000Z","updated_at":"2024-11-07T05:01:01.000Z","dependencies_parsed_at":"2022-07-24T18:02:21.623Z","dependency_job_id":null,"html_url":"https://github.com/fvilers/disable-react-devtools","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fdisable-react-devtools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fdisable-react-devtools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fdisable-react-devtools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fvilers%2Fdisable-react-devtools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fvilers","download_url":"https://codeload.github.com/fvilers/disable-react-devtools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230388131,"owners_count":18217755,"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":["react"],"created_at":"2024-11-25T18:26:38.087Z","updated_at":"2025-10-17T01:11:11.107Z","avatar_url":"https://github.com/fvilers.png","language":"JavaScript","funding_links":["https://github.com/sponsors/fvilers","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=JZ26X897M9V9L\u0026currency_code=EUR"],"categories":[],"sub_categories":[],"readme":"# disable-react-devtools\n\nA simple method to disable the React Developer Tools addon to access your application\n\n## Support\n\nIf you use and like this library, feel free to support my Open Source projects.\n\n[![donate](https://www.paypalobjects.com/en_US/BE/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=JZ26X897M9V9L\u0026currency_code=EUR)\n\n## How to install\n\n```\nnpm i @fvilers/disable-react-devtools\n```\n\nor\n\n```\nyarn add @fvilers/disable-react-devtools\n```\n\n## How to use\n\nCall the `disableReactDevTools()` method before React is loaded, in your main file.\n\n```\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { disableReactDevTools } from '@fvilers/disable-react-devtools';\nimport App from './App';\n\nif (process.env.NODE_ENV === 'production') {\n  disableReactDevTools();\n}\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('root'));\n\n```\n\n## How it works\n\nThe `disableReactDevTools()` method will look for the React Developer Tools global hook and replace its properties and methods to prevent the plugin registration process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvilers%2Fdisable-react-devtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffvilers%2Fdisable-react-devtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffvilers%2Fdisable-react-devtools/lists"}