html-react-parser
Version:
HTML to React parser.
13 lines (10 loc) • 333 B
TypeScript
// TypeScript Version: 4.1
export type Attributes = Record<string, string>;
export type Props = Attributes;
/**
* Converts HTML/SVG DOM attributes to React props.
*
* @param attributes - HTML/SVG DOM attributes.
* @return - React props.
*/
export default function attributesToProps(attributes: Attributes): Props;