wanting to render html on page, so setting th attribute "dangerouslySetInnerHTML", but doing this breaks the functionality