Skip to content

Commit 89291e9

Browse files
committed
1 parent e8f097c commit 89291e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components_guide_web/templates/react_typescript/form-reducers.html.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ So we have our errors. Let’s store them in state so we can render them using R
247247

248248
Let’s wrap what we have so far into an actual component, and store the errors using the `useState` hook.
249249

250-
We also display the error message alongside its form field. We use the `aria-describedby` attribute so that assistive technology like screen readers know which input has which error message. (The more specific `aria-errormessage` attribute is unfortunately [not well supported](https://a11ysupport.io/tech/aria/aria-errormessage_attribute).)
250+
We also display the error message alongside its form field. We use the `aria-describedby` attribute so that assistive technology like screen readers know which input has which error message. (The more specific `aria-errormessage` attribute is unfortunately [not well supported](https://a11ysupport.io/tech/aria/aria-errormessage_attribute) and so it’s [recommended to use `aria-describedby` instead](https://www.davidmacd.com/blog/test-aria-describedby-errormessage-aria-live.html).)
251251

252252
```tsx
253253
function validate(values: FormData) {

0 commit comments

Comments
 (0)