I used react on several of my project is that it was well passed, but it is last time I saw that there is a react-hot-reload
can anyone explain me plz :)
React Hot Loader is a plugin that allows React components to be live reloaded without the loss of state. It works with Webpack and other bundlers that support both Hot Module Replacement (HMR) and Babel plugins.
React Hot Loader is not included in Create React App. No, you can't disable refreshing in the default setup. If you want to customize this, you can either npm run eject and then configure Webpack as you like, or fork react-scripts and maintain your own version that doesn't refresh automatically.
webpack-dev-server: use web pack with a development server; use webpac-dev-middleware under the hood; webpack-hot-middleware: notify browser when a new bundle is built. webpack-hot-server-middleware: used for hot update webpack bundle on server rendering. react-hot-loader v3: hot reload for react.
When editing a React component, React Fast Refresh will efficiently only update and re-render that component. This leads to significantly faster hot reload times. In addition, React Fast Refresh will preserve component state during re-renders so you won't need to manually create the same scenario again.
React Hot Loader is a React library used to edit your code and automatically reflect that change in your running app while keeping the components mounted, which means you don't need to refresh your browser and you won't lose your current state. It's pretty convenient as you won't have to go step-by-step to test a specific state in your app every time you make a change in the code.
Your workflow would be faster, simpler and more comfortable.
Here's a live demo: http://gaearon.github.io/react-hot-loader/
Edit: React Hot Loader is now deprecated, use React Fast Refresh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With