|
4 gadi atpakaļ | |
---|---|---|
.. | ||
.vscode | 4 gadi atpakaļ | |
examples | 4 gadi atpakaļ | |
old | 4 gadi atpakaļ | |
src | 4 gadi atpakaļ | |
tests | 4 gadi atpakaļ | |
Cargo.toml | 4 gadi atpakaļ | |
README.md | 4 gadi atpakaļ | |
architecture.md | 4 gadi atpakaļ |
This is the core crate for the Dioxus Virtual DOM. This README will focus on the technical design and layout of this Virtual DOM implementation. If you want to read more about using Dioxus, then check out the Dioxus crate, documentation, and website.
Dioxus-core builds off the many frameworks that came before it. Notably, Dioxus borrows these concepts:
We have big goals for Dioxus. The final implementation must:
html! is lazy - needs to be used with a partner function to actually allocate the html. (Good be a good thing or a bad thing)
let text = TextRenderer::render(html! {<div>"hello world"</div>});
// <div>hello world</div>
fn main() {
tide::new()
.get("blah", serve_app("../"))
.get("blah", ws_handler(serve_app))
}
fn serve_app(ctx: &Context<()>) -> VNode {
let livecontext = LiveContext::new()
.with_handler("graph", graph_component)
.with_handler("graph", graph_component)
.with_handler("graph", graph_component)
.with_handler("graph", graph_component)
.with_handler("graph", graph_component)
.with_handler("graph", graph_component)
.build();
ctx.render(html! {
<LiveContext ctx={livecontext}>
<App />
</ LiveContext>
})
}