
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-devtools
Advanced tools
react-devtools
If you need to debug a React page somewhere other than Chrome on desktop (a mobile browser, an embedded webview, safari, etc), the react-devtools
package is for you! It is also useful if your app is inside an iframe.
It works both with React DOM and React Native.
Install the package:
npm install --save-dev react-devtools
Add a script to your package.json
:
"scripts": {
// ...
"devtools": "react-devtools"
}
Now run npm run devtools
to launch the standalone DevTools app.
The final step depends on your rendering target.
You don't need to do anything else. Just make sure your app is running in foreground in the simulator, and DevTools will connect to it.
Add import 'react-devtools'
to the top of your entry file.
import 'react-devtools'; // Put it first!
import ReactDOM from 'react-dom';
Make sure that your react-devtools
import comes before your react-dom
import.
And don't forget to remove the import before shipping to production!
By default DevTools listen to port 8097
on localhost
.
If you need to customize host, port, or other settings, see the react-devtools-core
package instead.
npm run backend:watch
and npm run standalone:watch
in ../react-devtools-core
npm start
in this folderFAQs
Use react-devtools outside of the browser
We found that react-devtools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.