Skip to content

Glossary: React Beyond the Basics

querySelector

A browser method that returns the first element inside another that matches a CSS selector. The checkout uses it to find the first field marked aria-invalid and focus it.

Where the book teaches it

Related terms

refaria-invalid