As HTML attributes are not case sensitive and setAttribute converts
camel case attributes to lower case we should use hyphens instead for
compound words. However Preact/React convention is to use camel case
for props.
This converts hyphenated WC attributes to camel cased prop names.
As HTML attributes are not case sensitive and
setAttribute
converts camel case attributes to lower case we should use hyphens instead for compound words. However Preact/React convention is to use camel case for props.This converts hyphenated WC attributes to camel cased prop names.