Expand description
Things you’ll require to build the next great App. Just glob import the prelude and start building your app.
Re-exports
pub use crate::component::Component;
pub use crate::component::Lifecycle;
pub use crate::component::Render;
pub use crate::component::SetState;
pub use crate::component::StateSetter;
pub use crate::App;
pub use crate::Markup;
Macros
html!
macro to parse vue
-inspired syntax to generate Markup.Attribute Macros
#[component]
macro to derive Component
trait as well as to do
modifications to the struct. It does all the heavy lifting which the user
would have to do, to make the component work.Derive Macros
A convenient auto derive for
Lifecycle
trait. It could be simply written
as impl Lifecycle for MyComponent {}
instead, but why not save some chars.
You may use it like: