error boundary react functional component