Skip to content

Usage with JSX #21

@m4rcelofs

Description

@m4rcelofs

The demos create everything on window.onload and render directly to document.body.
The closest thing I could find was adventure-weave's index.tsx which returns a DiagramWidget on its render(), but that's just a wrapper and the actual work is also done during window.onload.

In my case that wouldn't really work - I already have a full app with redux, grommet, routing, other "pages" (so the diagram would not be always visible), etc. The ideal way would be for DiagramWidget to be wrapped by a Component that abstracts all that and just renders the diagram in the provided div, I guess.

I realize you guys are not fans of JSX, but many people don't really have an option there (: - plus the "default" way to start learning React usually uses JSX.

Apologies if this looks like a noobish request, but Is there an example about linking it? What would be the best way to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions