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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here is a short working demo:
github.com/GlebIrovich/suspense-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