Skip to content

[question] Add component to DOM dynamicly #2406

Closed

Description

@bigleanator

I'm new to yew so forgive me if this is a stupid question but how do you add elements to the DOM at runtime?

All of the examples and docs I have read all seem to not create or destroy any elements.
Say for example I wanted to fill a table based off an array of serialized components. Since the number of rows is unknown, elements would have to be inserted and removed from the DOM to accommodate the number of rows.
How would I go about adding the de-serialized components to the DOM?

Activity

  1. locked and limited conversation to collaborators on Jan 25, 2022
  2. converted this issue into a discussion #2409 on Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions