gaearon / react-hot-loader

Tweak React components in real time. (Deprecated: use Fast Refresh instead.)

Home Page:http://gaearon.github.io/react-hot-loader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to remove RHL from Create React App

ORESoftware opened this issue · comments

Looking forward to new iterations of these kinds of tools. I see the deprecation notice - it looks like CRA comes with RHL out of the box. For now I just want to use HMR without RHL. Is there a way to remove RHL from CRA without ejecting?

On a side note - is there a section on how to hook into RHL cycles/state? For example, when a change is detected, when it's recompiling, attempts to re-render, and then finishes re-rendering?

// CRA = create react app, RHL = react hot loader

RHL never was a part of CRA. It always was just a pure HMR and nothing else.

On a side note - is there a section on how to hook into RHL cycles/state?

There is no such API export both externally and internally.