Skip to content

Split "all-in-one" and "modular" Inflators #133

@FrameMuse

Description

@FrameMuse

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions