Closed ltfschoen closed 1 year ago
before we can use it in an example main.rs file with
kobold::fragment()
?but i can't see the purpose of
fragement
There is a higher level RAII Fragment
struct here:
All of those JS functions are just implementation details and shouldn't be exposed, the html!
macro creates fragments just fine by default (no <>...</>
needed).
Since there are no changes atm, I'll close it to keep the PRs clean.
@maciejhirsz how do you use the other functions mentioned in crates/kobold/js/utils.js?
for example
start
is in crates/kobold/js/utils.js and also in crates/kobold/src/lib.rs and then it's used in various examples main.rs files withkobold::start(html! { <Elapsed />})
so if i wanted to use
fragment
in crates/kobold/js/utils.js, is the idea just to add it to crates/kobold/src/lib.rs or in its own file in that folder, for example forfragement
it'd just bebefore we can use it in an example main.rs file with
kobold::fragment()
?but i can't see the purpose of
fragement