chromakode / react-html-email

Create elegant HTML email templates using React.
MIT License
896 stars 115 forks source link

is there a full example #56

Closed dewelloper closed 4 years ago

dewelloper commented 6 years ago

Hello i couldnt create with this example becouse it doesnt make any sence. I have made a component according the example and that gave me just a page that is writen download source code.. etc.

import React from 'react'

import { render } from 'react-dom'; //import { Email, Item, Span, A, renderEmail } from 'react-html-email' import { Box, Email, Image, Item, Span, A } from 'react-html-email'

//import eml from './XEmail'

const css = @media only screen and (max-device-width: 480px) { font-size: 20px !important; }.trim()

const sourceURL = 'https://raw.githubusercontent.com/chromakode/react-html-email/master/examples/kitchenSink.js'

export const Connect = () => (

Hello, world! Generated by react-html-email react Source code

)

export default Connect

neo182 commented 6 years ago

@dewelloper same here...!

Khangeldy commented 6 years ago

Article in Medium