gaearon / gaearon/react-hot-loader

[Guide] how to add to create react app without ejecting [for yarn users]

Open
#1,255 10 comments 6 reactions 0 assignees View on GitHub
CRA integration
Dominant language
JavaScript
Stars
12.2k
Forks
775
PR merge metrics
No merged PRs in 30d

Description

Very simple:
Add this to your package.json (Or if you already have resolutions, add it as a new entry)
```
"resolutions": {
"babel-preset-react-app": "npm:babel-preset-react-app-with-rhl"
}
```

What's inside `npm:babel-preset-react-app-with-rhl` package?

See:
https://github.com/Bnaya/create-react-app/compare/master...Bnaya:mod-babel-preset-react-app?expand=1

@theKashey i think it will be very helpful to maintain `babel-preset-react-app-with-rhl` package as part of this project, same as `@hot-loader/react-dom` and keep it up to date with CRA

Also using `resolutions` to point react-dom to `@hot-loader/react-dom` can be handy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.