{
+ return function ErrorBoundary(props) {
+ const [error, setError] = useState(null)
+ if (error) {
+ return An error occured:{error.toString()}
+ }
+
+ try {
+ return
+ } catch (err) {
+ setError(err)
+ }
+ }
+}
const ResetPassword = () => {
const [apiError, setApiError] = useState('')