feat: amazingly awesome error handling
This commit is contained in:
1 parent
05c909f320
commit
4a72b3140b
58 files changed
+248
-1219
No files matched your search
@@ -1,20 +1,25 @@
|
||||
fn main() {}
|
||||
|
||||
// use dioxus::*;
|
||||
// use dioxus_core as dioxus;
|
||||
// use dioxus_core::prelude::*;
|
||||
use dioxus::*;
|
||||
use dioxus_core as dioxus;
|
||||
use dioxus_core::prelude::*;
|
||||
|
||||
// pub static Example: FC<()> = |cx| {
|
||||
// let list = (0..10).map(|f| LazyNodes::new(move |f| todo!()));
|
||||
pub static Example: FC<()> = |cx| {
|
||||
let list = (0..10).map(|f| LazyNodes::new(move |f| todo!()));
|
||||
|
||||
// cx.render(LazyNodes::new(move |cx| {
|
||||
// let bump = cx.bump();
|
||||
// cx.raw_element("div")
|
||||
// .children([
|
||||
// cx.text(format_args!("hello")),
|
||||
// cx.text(format_args!("hello")),
|
||||
// cx.fragment_from_iter(list),
|
||||
// ])
|
||||
// .finish()
|
||||
// }))
|
||||
// };
|
||||
cx.render(LazyNodes::new(move |cx| {
|
||||
let bump = cx.bump();
|
||||
cx.raw_element(
|
||||
"div",
|
||||
None,
|
||||
&mut [],
|
||||
&mut [],
|
||||
cx.bump().alloc([
|
||||
cx.text(format_args!("hello")),
|
||||
cx.text(format_args!("hello")),
|
||||
cx.fragment_from_iter(list),
|
||||
]),
|
||||
None,
|
||||
)
|
||||
}))
|
||||
};
|
||||
Reference in new issue
Block a user