react 16 has a cool concept called componentWillCatch which allows the user to define a fallback component to render if an error is raised during the render process.
Add a componentWillCatch to the Component class & call componentWillCatch if render throws.
react 16 has a cool concept called componentWillCatch which allows the user to define a fallback component to render if an error is raised during the render process.
Add a componentWillCatch to the Component class & call componentWillCatch if render throws.