-
Notifications
You must be signed in to change notification settings - Fork 10
Split "all-in-one" and "modular" Inflators #133
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Split inflators to make the best developer experience.
Currently, you should import WebInflator, which handles all common usage.
const inflator = new WebInflator
document.body.append(inflator.inflate(123))
document.body.append(inflator.inflate(<div />))
document.body.append(inflator.inflate([<div />, <div />]))
document.body.append(inflator.inflate(new State(123)))const jsxInflator = new WebJsxInflator
jsxInflator.inflate(<div />)
jsxInflator.attributes.set("classMods", context => ...)
jsxInflator.elements.set("game", context => ...)const signalInflator = new SignalInflator
signalInflator.inflate(new Signal(123))const inflator = new Inflator
inflator.adapters.add(JsxInflator)
inflator.adapters.add(SignalInflator)
inflator.adapters.add(JsnInflator)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request