A mobile-first UI library for web assembly. The goal is to support both web and native mobile with a standard set of components similar to React Native and other hybrid UI technology.
This project uses the view!
macro
[dependencies]
wui = "0.0.1"
use wui::*;
#[no_mangle]
pub fn main() -> () {
let mut wui = globals::get::<Wui>().lock();
wui.initialize();
wui.render(view!{
App {
Text("Hello World!")
}
});
}
<script src="https://cdn.jsdelivr.net/gh/richardanaya/js_ffi/js_ffi.js"></script>
<script>js_ffi.run("helloworld.wasm");</script>
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in wui by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.