E0191: event attributes must be camelCase
In HTML, attributes are case-insensitive; onclick
is the same as onClick
and
ONCLICK
. In React, attributes are case-sensitive. It is a mistake for an event
attribute (starting with on
) to be all lower-case:
To fix this error, fix the capitalization by writing the attribute in lowerCamelCase:
This diagnostic enabled in the "react"
JSX mode.
Introduced in quick-lint-js version 2.0.0.