Muil is a extraordinarily great service to make e-mail, PDF and picture templates the usage of React,
then generate by an easy REST API
import React from 'react'
import { BarChart } from '@muil/charts'
const Chart = ({ jan, feb, mar }) => (
<>
<h2 type={{ textAlign: 'middle' }}>
Ample Chart
h2>
<BarChart
type={{ margin: 'zero auto' }}
top={150}
classes={[{ color: '#6041D9' }]}
collection={[
{
label: 'Jan',
value: jan
},
{
label: 'Feb',
value: feb
},
{
label: 'Mar',
value: mar
}
]}
/>
>
)
curl
-X POST
-d '{
"self-discipline": "Ample Chart",
"to": "[email protected]",
"props": { "jan": 20, "feb": 50, "mar": 30 }
}'
'https://api.muil.io/templates/awesomeChart/e-mail'