1.1.4 • Published 1 year ago
@ulyssear/just-render v1.1.4
Just-render
Generate HTML elements in Javascript by writing HTML strings only.
Installation
Usage
Import the package inside your project.
import render from 'just-render'
Write your HTML code by calling render function.
// Render is a function, so you can access it,
// like every function.
const my_element = render("<h1>Hello world !</h1>")
// But this has to be used with template strings
const my_element = render`<h1>Hello world !</h1>`
// Why ? Because you can easily add datas into it !
const name = 'world';
const my_element = render`<h1>Hello ${name} !</h1>`