codetogo.io icon indicating copy to clipboard operation
codetogo.io copied to clipboard

Use Case Suggestion: How to catch error in React

Open Rajdeepc opened this issue 2 years ago • 0 comments

import React, {ErrorBoundary} from "react";

function App() {
  return (
    <ErrorBoundary>
      <h1>Example to show how to use ErrorBoundary in React</h1>
    </ErrorBoundary>
  );
}

Rajdeepc avatar Apr 23 '22 14:04 Rajdeepc