DEV Community

Discussion on: Trying Lazy Loading and getting flicker?

glebirovich profile image
Gleb Irovich

Here is a short working demo:

I think something is wrong with the HOC. Because if you look at my implementation, valid Route can only accept HOC like a that: <Route path="/changePassword" exact={true} component={() => withHOC(LazyContent)} />

Hope it helps