mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-18 16:43:21 +00:00
18 lines
642 B
Rust
18 lines
642 B
Rust
//! The book of patterns
|
|
//! -----
|
|
//!
|
|
//! This "book" shows a bunch of useful patterns, ergonomic highlights, and quirks for common usecases when building components.
|
|
//!
|
|
//! Here's what's in the book:
|
|
//! - [ ] Use the builder pattern directly instead of the macro
|
|
//! - [ ] Using statics instead of functions for components without type hassle.
|
|
//! - [ ] Use the FC macro on statics and fns for inling props
|
|
//! - [ ] Using borrowed data from parent to child
|
|
//!
|
|
//! Running this example will generate a beautiful webpage. This webpage is used on the diouxs website.
|
|
|
|
fn main() {}
|
|
|
|
mod static_usage {}
|
|
mod fc_macro {}
|
|
mod borrowed_data {}
|