It would be nice to be able to set a list of default/global element overrides, so that one does not have to repeat the overrides for recurring conversions. Example:
import HTML2React from 'html2react'
import Link from './components/Link'
HTML2React.setGlobalElementOverrides({
'a.external': (props) => (
<Link external {...props} />
)
})
It would be nice to be able to set a list of default/global element overrides, so that one does not have to repeat the overrides for recurring conversions. Example: