render.js

import React from 'react';

export const renderHTML = (rawHTML, className) =>
  React.createElement('div', {
    className,
    dangerouslySetInnerHTML: { __html: rawHTML }
  });