0.0.1 • Published 6 years ago
hypert v0.0.1
Hypert
Hypertext transpiler (early alpha stage, exploratory)
Install
yarn add hypertUse
import { parse, render } from 'hypert'
const source = '<div>...</div>'
const nodes = parse(source)
const html = render(nodes)React
Optionally create a React node that renders the HTML.
import React from 'react'
import ReactDOM from 'react-dom'
import { parse, render } from 'hypert'
import { createReactComponent } from 'hypert/react'
const source = '<div>...</div>'
const nodes = parse(source)
const Component = createReactComponent(nodes)
ReactDOM.render(<Component />, document.getElementById('app'))Develop this library
Install dependencies
yarnDevelop: Watch files; Recompile, type check and test on changes
yarn devBuild
yarn buildPublish to NPM
npm run release