Put in order · JavaScript and React course · Module 16: Error Handling and Suspense
Displaying Form Field Errors
Arrange the correct syntax for conditionally displaying a field error:
Items to put in order
- &&
- {touched.name
- errors.name
- &&
- <p>{errors.name}</p>}
You can check the correct answer by solving this task in the CodeWorlds game.