@ornery/render-html

0.1.8 • Public • Published

render-html

Installation

npm

npm i `@ornery/render-html` --save

yarn

yarn add `@ornery/render-html`

Examples

import '@ornery/render-html'
### JSX or HTML
export const RemoteRender = () => (
  <render-html href="/samples/snippet.html" placeholder="Your Email Address"></render-html>
)

export const RenderAttribute = () => (
  <render-html placeholder="Do something else" html="<p> I am some simple html content to be passed as either <ul><li>an 'html' attribute </li><li>as the body</li></ul></p> ${this.placeholder}"></render-html>
)

const interpolation = 'How did i get here? ${this.placeholder}'
export const RenderBody = () => (
  <render-html placeholder="I'm changing via attributes" >
    <div> I am some simple html content to be passed as either <ul><li>an 'html' attribute </li><li>as the body</li></ul></div>
    <div>{interpolation}</div>
  </render-html>
)

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @ornery/render-html

    Weekly Downloads

    15

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    23.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • timothyswt