A simply component written with TypeScript to insert HTML with React Variable Statements (JSX) using [`dangerouslySetInnerHTML`](https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml) and [`DOMPurify`](https://github.com/cure53/DOMPurify) to
npm install govil-html-descriptiondangerouslySetInnerHTML and DOMPurify to sanitize it.
npm install && npm run build
govil-html-description as a normal package installed from npm like so:
import Description from 'govil-html-description';
...
`
You can also import the type definitions if you're using TypeScript like so:
`
import Description, { IHtmlDescription } from 'govil-html-description'
...
`
Available props
`
interface IHtmlDescription {
descriptionHtml: string;
}
`
To customise this component, pass in a viewModel to the vm prop.
`
// your-component.js
import Description from 'govil-html-description'
...
...
``