Rustfmt
This commit is contained in:
parent
05e04e4f8c
commit
e3cb443542
|
@ -4,18 +4,20 @@ fn main() {
|
|||
let value = Signal::new(String::new());
|
||||
let rendered = create_memo(cloned!(value => move || markdown::to_html(&*value.get())));
|
||||
|
||||
sycamore::render(|| view! {
|
||||
h1(class="text-align-center") { "MarkRS" }
|
||||
div(class="flex-container-row wrapper") {
|
||||
div(class="flex-child") {
|
||||
div(class="flex-container-column") {
|
||||
textarea(bind:value=value, class="flex-child")
|
||||
div(class="card flex-child", dangerously_set_inner_html=&*rendered.get())
|
||||
sycamore::render(|| {
|
||||
view! {
|
||||
h1(class="text-align-center") { "MarkRS" }
|
||||
div(class="flex-container-row wrapper") {
|
||||
div(class="flex-child") {
|
||||
div(class="flex-container-column") {
|
||||
textarea(bind:value=value, class="flex-child")
|
||||
div(class="card flex-child", dangerously_set_inner_html=&*rendered.get())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
div(class="footer") {
|
||||
"Made with Rust 1.57.0 and WASM"
|
||||
div(class="footer") {
|
||||
"Made with Rust 1.57.0 and WASM"
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue