Feat: add context to builder
This commit is contained in:
1 parent
fcd68e61d2
commit
cf16090838
8 files changed
+144
-98
No files matched your search
@@ -277,11 +277,15 @@ mod tests {
|
||||
use crate::prelude::format_args_f;
|
||||
|
||||
static ListenerTest: FC<()> = |ctx, props| {
|
||||
ctx.render(html! {
|
||||
<div onclick={|_| println!("Hell owlrld")}>
|
||||
"hello"
|
||||
</div>
|
||||
ctx.render(move |c| {
|
||||
//
|
||||
builder::ElementBuilder::new(c, "div").finish()
|
||||
})
|
||||
// ctx.render(html! {
|
||||
// <div onclick={|_| println!("Hell owlrld")}>
|
||||
// "hello"
|
||||
// </div>
|
||||
// })
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user