Refactor conditional assign and should render.

This commit is contained in:
Thomas Gideon 2020-10-18 13:19:48 -04:00
parent 4a2087a94e
commit d9ddde9436
17 changed files with 85 additions and 26 deletions

View file

@ -18,7 +18,7 @@ impl Component for InputGroup {
}
fn change(&mut self, props: Self::Properties) -> ShouldRender {
render_on_change(&mut self.props, props)
render_if_ne(&mut self.props, props)
}
fn view(&self) -> Html {