ganapativs / react-dynamic-import

Dynamically load and render any react module(Component or an HOC) using dynamic import 🎉

Home Page:https://codesandbox.io/s/react-dynamic-import-hooks-demo-108-kuf3u

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fallback to default component if module does not exists.

tayfunyasar opened this issue · comments

How can i do it?

Yes. Use the errorHandler option. Check out the API docs.

errorHandler is a React component that will be rendered in case of errors like module load failure.

I hope this solved the issue. closing for now. re-open if something doesn't work as expected.