html-to-react
Version:
A lightweight library that converts raw HTML to a React DOM structure.
31 lines (29 loc) • 466 B
text/typescript
// Boolean HTML attributes, in the case React expects.
const booleanAttrs = [
'allowFullScreen',
'allowpaymentrequest',
'async',
'autoFocus',
'autoPlay',
'checked',
'controls',
'default',
'disabled',
'formNoValidate',
'hidden',
'ismap',
'itemScope',
'loop',
'multiple',
'muted',
'nomodule',
'noValidate',
'open',
'playsinline',
'readOnly',
'required',
'reversed',
'selected',
'truespeed',
];
export {booleanAttrs};