Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Null-elements are not allowed? #79

@dy

Description

@dy

There are use-cases when it is not necessary to create an element for a component, for example, when we render WebGL/regl or canvas2d layers:

<canvas id="canvas">
<Grid canvas="#canvas" type="cartesian" />
<Plot canvas="#canvas" data={data} />
<Text canvas="#canvas" text="Test Plot" />

Would that be reasonable to disable strong assertion of instance.element property? Or not forcing render to return etch virtual-dom?

Faced this issue trying to make gl-component API compatible with etch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions