showcase.rs 642 B

123456789101112131415161718
  1. //! The book of patterns
  2. //! -----
  3. //!
  4. //! This "book" shows a bunch of useful patterns, ergonomic highlights, and quirks for common usecases when building components.
  5. //!
  6. //! Here's what's in the book:
  7. //! - [ ] Use the builder pattern directly instead of the macro
  8. //! - [ ] Using statics instead of functions for components without type hassle.
  9. //! - [ ] Use the FC macro on statics and fns for inling props
  10. //! - [ ] Using borrowed data from parent to child
  11. //!
  12. //! Running this example will generate a beautiful webpage. This webpage is used on the diouxs website.
  13. fn main() {}
  14. mod static_usage {}
  15. mod fc_macro {}
  16. mod borrowed_data {}