What you did:
I duplicated the very same error fallback ui within the main app component file and it worked.
What happened:
I want to have my fallback UI component in a separate file, but when I import it to be called by the FallbackComponent, it doesn't work.
Reproduction repository:
Problem description:
Suggested solution:
Try make the FallbackComponent prop accept imported function components.
react-error-boundary
version:node
version: v16.14.0npm
version: 8.3.1Relevant code or config
What you did: I duplicated the very same error fallback ui within the main app component file and it worked.
What happened: I want to have my fallback UI component in a separate file, but when I import it to be called by the FallbackComponent, it doesn't work.
Reproduction repository:
Problem description:
Suggested solution: Try make the FallbackComponent prop accept imported function components.