Update example to show props deriving, text macro, etc
This commit is contained in:
parent
290b57d336
commit
241cae3c93
7 changed files with 50 additions and 24 deletions
|
|
@ -26,3 +26,13 @@ pub use reconciler::key::ComponentKey;
|
|||
lazy_static! {
|
||||
pub static ref RENDER_ENGINE: RenderEngine = RenderEngine::new();
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! text {
|
||||
($t:expr) => {
|
||||
alchemy::RSX::text($t)
|
||||
};
|
||||
($format:tt, $($tail:expr),*) => {
|
||||
alchemy::RSX::text(format!($format, $($tail),*))
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue