use leptos::{leptos_dom::logging::console_log, prelude::*};
use mathquill_leptos::components::MathQuillStatic;
fn main() {
leptos::mount::mount_to_body(move || {
let current = RwSignal::new(String::from("1 + 1 = 2"));
view! {
<label for="latex-input">"Type latex here:"</label>
<input id="latex-input" type="text" bind:value=current />
<p>"And your latex will appear rendered here:"</p>
<MathQuillStatic latex=current />
}
});
}