mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-11-23 00:18:21 -05:00
Fix an indentation issue
This commit is contained in:
parent
e53a938d5a
commit
26509b50e7
@ -1,20 +1,20 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate virtual_dom_rs;
|
extern crate virtual_dom_rs;
|
||||||
|
|
||||||
extern crate percy_webapis;
|
extern crate percy_webapis;
|
||||||
extern crate wasm_bindgen;
|
extern crate wasm_bindgen;
|
||||||
|
|
||||||
use percy_webapis::log;
|
use percy_webapis::log;
|
||||||
use percy_webapis::Element;
|
use percy_webapis::Element;
|
||||||
use wasm_bindgen::prelude::*;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
pub fn main() -> Element {
|
pub fn main() -> Element {
|
||||||
log("Entered Rust code");
|
log("Entered Rust code");
|
||||||
|
|
||||||
let elem = html! {
|
let elem = html! {
|
||||||
<span> {"It is alive!"} </span>
|
<span> {"It is alive!"} </span>
|
||||||
};
|
};
|
||||||
|
|
||||||
elem.create_element()
|
elem.create_element()
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user