0.1.8 • Published 2 years ago

@ornery/render-html v0.1.8

Weekly downloads
60
License
MIT
Repository
-
Last release
2 years ago

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>
)
0.1.8

2 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago