Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vimcaw/craco-fast-refresh

[⚠️DEPRECATED] A Craco plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.
https://github.com/vimcaw/craco-fast-refresh

craco craco-plugin fast-refresh hot-reload react

Last synced: about 6 hours ago
JSON representation

[⚠️DEPRECATED] A Craco plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.

Awesome Lists containing this project

README

        

## ⚠️ DEPRECATION WARNING

Fast Refresh has been supported officially since [create-react-app](https://github.com/facebook/create-react-app) v4 release, this plugin only works on create-react-app v3, and it has some bugs (such as multiple error overlays), please use create-react-app v4 if possible.

Welcome to craco-fast-refresh 👋




Version


Total Download Count


Download Count DM


License: MIT

> A Craco plugin to enable "Fast Refresh" (also previously known as Hot Reloading) for React components.

## What is Fast Refresh

React Fast Refresh is a replacement for [React Hot Loader](https://github.com/gaearon/react-hot-loader). Fast refresh makes your React app reloads slick and painless on code changes, providing a great developer experience.

More information:
- [Fast Refresh · React Native](https://reactnative.dev/docs/fast-refresh#limitations)
- [What the heck is React Fast Refresh \| Marios Fakiolas](https://mariosfakiolas.com/blog/what-the-heck-is-react-fast-refresh/)
- [What is React Fast Refresh?\. This library is going to change your… \| by Mallik Cheripally \| JavaScript In Plain English \| Medium](https://medium.com/javascript-in-plain-english/what-is-react-fast-refresh-f3d1e8401333)

## Install

If you use `yarn`:
```sh
yarn add -D craco-fast-refresh
```
If you use `npm`:
```sh
npm i -D craco-fast-refresh
```

## Usage

Add a plugin object to your `plugins` on `craco.config` file:

```js
const fastRefreshCracoPlugin = require('craco-fast-refresh');

module.exports = () => {
return {
plugins: [{ plugin: fastRefreshCracoPlugin }],
};
};
```

## Author

👤 **vimcaw **

* Website: https://vimcaw.github.io/blog/
* Twitter: [@vimcawZhu](https://twitter.com/vimcawZhu)
* Github: [@vimcaw](https://github.com/vimcaw)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/vimcaw/craco-fast-refresh/issues).

## Show your support

Give a ⭐️ if this project helped you!

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_