ReactIntermediate#accessibility

What accessibility basics should a React component follow?

Use semantic elements, label every input, keep keyboard focus manageable, add aria-* only when semantics are missing, and never convey state by colour alone.

Example
<label htmlFor="email">Email</label>
<input id="email" type="email" required />
<button aria-expanded={open} onClick={toggle}>Menu</button>

Related Questions

1
ReactAdvanced#context#performance

How do you avoid unnecessary re-renders from context?

Open
2
ReactBeginner#fundamentals

What is React and why use it?

Open
3
ReactBeginner#jsx

What is JSX?

Open