Skip to content

Commit

Permalink
Update config/plugins/webpack.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Nov 7, 2023
1 parent 1772f0e commit f3db1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/plugins/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ All your renderer processes in development will have hot reloading enabled by de

### Hot Reloading for React

If you're using react components you may want to have HMR automatically pick up a change and reload the component without having to manually refresh the page. This is possible by installing [`react-hot-loader`](https://github.com/gaearon/react-hot-loader) to define which modules should be hot reloaded.
If you're using React components, you may want to have HMR automatically pick up a change and reload the component without having to manually refresh the page. This is possible by installing [`react-hot-loader`](https://github.com/gaearon/react-hot-loader) to define which modules should be hot reloaded.

Here's a usage example in typescript with `App` being the topmost component in a react component tree:
```typescript
Expand Down

0 comments on commit f3db1a7

Please sign in to comment.