React Component library for The Endurance newsletters.

Usage no npm install needed!

<script type="module">
  import hurley from '';


Hurley API

React Component library for rendering The Endurance newsletters.

import Hurley,{ createComponent } from 'hurley'

createNewsletter(ast, Renderer)

Accepts a data object and renderer.

const Newsletter = Hurley.createNewsletter(ast, Renderer)

render(<Newsletter />, document.getElementById('newsletter'))


  header: {
    title: "My Title",
    subject: "My subject"
  blocks: [{
    id: 1,
    body: "<h1>First block</h1>"
  }, {
    id: 2,
    body: "<h1>Second block</h1>"
  }, {
    id: 3,
    body: "<h1>Third block</h1>"