State Management

Hirola allows basic state management using app feature.

Getting started

let window = web_sys::window().unwrap();
let document = window.document().unwrap();
let body = document.body().unwrap();
let todos = MutableVec::new();
let mut app = App::new(todos);
/// Add routes
app.mount();

With that you can access the state from the current route.