sc0ttj / component

A tiny library for isomorphic JavaScript components
MIT License
2 stars 1 forks source link

Added `render` as a module: #29

Closed sc0ttj closed 3 years ago

sc0ttj commented 3 years ago

You can now import a render method on its own, which is only ~830 bytes.

Features:

Usage:

import { render } from "@scottjarvis/component"

render(`<p>Hi</p>`, ".container")

This partially addresses https://github.com/sc0ttj/component/issues/25, namely the bits about render.

NOTE: This render method does not support the persistent state add-on.