Skip to content

Commit cdcfca5

Browse files
authored
update description in error boundaries lesson 01 to match automated tests (#430)
1 parent 5cb67bd commit cdcfca5

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ 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]"
101+
// The ErrorFallback component should return a React element with role="alert"
102+
// That element should contain text in the format: "There was an error: [error message]"
102103
// 💯 you can make it look nice if you want
103104
// 📜 https://github.com/bvaughn/react-error-boundary#errorboundary-with-fallbackcomponent-prop
104105

0 commit comments

Comments
 (0)