🧑‍💻 Simplify component class access functions

This commit is contained in:
Manuel Cillero 2024-03-03 21:14:56 +01:00
parent d69d4cda45
commit 9a5618ef4b
12 changed files with 82 additions and 94 deletions

View file

@ -29,7 +29,7 @@ impl ComponentTrait for Block {
}
fn setup_before_prepare(&mut self, _cx: &mut Context) {
self.prepend_classes("block__container");
self.alter_classes(ClassesOp::Prepend, "block__container");
}
fn prepare_component(&self, cx: &mut Context) -> PrepareMarkup {