
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-hot-loader-loader
Advanced tools
Webpack Loader to use react-hot-loader without any changes in your App
A Webpack Loader that automatically inserts react-hot-loader to your app, without any changes in your app code.
All it takes is a simple regex to indicate where your "App" Components are. This module does nothing if NODE_ENV is set to production.
Example:

This example code (A very informative webpack example)
npm i react-hot-loader-loader
{
test: /\/App\.js$/, // regex to match files to receive react-hot-loader functionality
loader: require.resolve('react-hot-loader-loader'),
}
This loader must be placed after any ES6 transpiling loader (Babel), to make sure it transforms the code before it.
{
"plugins": ["react-hot-loader/babel"]
}
Working project example with HMR, react-hot-loader and error recovery.
The loader is dependent on react-hot-loader v4+, and won't work with earlier versions.
react-hot-loader is amazing! It exposes an HOC that does all the heavy lifting. It can wrap any component and will add real time components tweaking functionality while using HMR.
This Webpack loader just make things cleaner and easier, wrapping components with this HOC for you. All that from a Webpack configuration and not from inside Components.
This component:
import React from 'react';
export default class App extends React.Component {
render() {
return 'something';
}
}
Will transform to this (before ES6 transpilation):
import {hot} from 'react-hot-loader';
import React from 'react';
class App extends React.Component {
render() {
return 'something';
}
}
export default hot(module)(App);
See the test for many more examples.
MIT
FAQs
Webpack Loader to use react-hot-loader without any changes in your App
We found that react-hot-loader-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.