readme
This commit is contained in:
parent
53e7c46749
commit
2c8d95a18d
28
readme.md
Normal file
28
readme.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# html.js
|
||||||
|
|
||||||
|
Escribí HTML en JS sin JSX.
|
||||||
|
|
||||||
|
## Instalar
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm config set @nulo:registry https://gitea.nulo.in/api/packages/nulo/npm/
|
||||||
|
npm add @nulo/html.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Uso
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import {render, h1, doctype, metaUtf8, meta, link} from '@nulo/html.js'
|
||||||
|
|
||||||
|
const head = [
|
||||||
|
doctype(),
|
||||||
|
metaUtf8,
|
||||||
|
meta({ name: "viewport", content: "width=device-width, initial-scale=1.0" }),
|
||||||
|
link({ rel: "stylesheet", href: "style.css" }),
|
||||||
|
]
|
||||||
|
|
||||||
|
const html = render(
|
||||||
|
...head,
|
||||||
|
h1("Hola mundo!")
|
||||||
|
)
|
||||||
|
```
|
Loading…
Reference in a new issue