npm install jsx-to-html
babel.transform(code, {
plugins: ['jsx-to-html/babel-plugin'],
blacklist: ['react']
});
or any other way described here, just pass `'jsx-to-html/babel-plugin'`` as a plugin name.
import { render } from 'jsx-to-html';
var content = render(<div className="hello">Hello World</div>);
container.innerHTML = content;