Skip to content

Commit 955d84e

Browse files
Add comment for ErrorFallback component rendering error message format (#419)
Co-authored-by: Cursor Agent <[email protected]>
1 parent 7319cf7 commit 955d84e

File tree

1 file changed

+1
-0
lines changed
  • exercises/09.errors/01.problem.composition

1 file changed

+1
-0
lines changed

exercises/09.errors/01.problem.composition/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function App() {
9898

9999
// 🐨 create an ErrorFallback component here that accepts FallbackProps
100100
// and renders the error.message
101+
// The error message should be displayed in the format: "There was an error: [error message]"
101102
// 💯 you can make it look nice if you want
102103
// 📜 https://github.com/bvaughn/react-error-boundary#errorboundary-with-fallbackcomponent-prop
103104

0 commit comments

Comments
 (0)