@faire/mjml-react
Version:
React component library to generate the HTML emails on the fly
13 lines (12 loc) • 438 B
JavaScript
import React, { Component } from "react";
import { MjmlRaw } from "..";
export class MjmlYahooStyle extends Component {
render() {
const { children, ...rest } = this.props;
if (children && children.toString().trim().length) {
return (React.createElement(MjmlRaw, { ...rest },
React.createElement("style", null, `@media screen yahoo {${children}}`)));
}
return null;
}
}