error-boundariesReactError BoundariesHardHow are error boundaries implemented today?1As class components using getDerivedStateFromError (and optionally componentDidCatch)2With a useErrorBoundary hook built into React3Via the useEffect cleanup function4Using try/catch around JSXBack to list