Skip to content

Implementing change for children #907

@krampenschiesser

Description

@krampenschiesser

Question

I am implementing a button of a third party JS framework (onsen).
Anyway a button always receives children in the form of icons or its text.
Now when I try to implement fn change(&mut self, props: Self::Properties) -> ShouldRender {
my problem is how can I check that the children didn't change?
I could render and then compare the HTML but that's excessive.
Is there any easier way (eg id'ing the children)?

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