| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Isomorphic exports of uhtml
npm install uhtml-isomorphic
Use uhtml or uhtml-ssr from a single import identifier depending on then environment you are running.
import {render, html, svg} from 'uhtml-isomorphic';
// const {render, html, svg} = require('uhtml');
render(document.body, html`<h1>Hello 👋 µhtml</h1>`);While @webreflection recomends require-overrides in the offical documentation, that requires special flags or transforms to work.
uhtml-isomorphic works by utilizing environment specific exports fields so that you can have dependency injection at the built-in module resolver layer. It supports the following export fields:
MIT
| Back | FazBrowse Home | New Git URL |