mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Partially copy useful implementation. * Adjust conversion. * Temporary fix iterator. * Add ToString implementation. * Add Renderable trait. * Make Macro tests pass. * Add tests for render_prop as Children. * Update benchmark and Children used in yew packages. * Selective suppress lints. * Rollback unintentional rollback. * Fix rustfmt. * Remove unneeded implementation. * Update Comment. * Rollback more changes. * Rollback more changes. * Fix website. * Fix documentation tests. * Add prelude. * Fix test. * Blanket Implementation for &'_ T for Renderable types. * Implement Renderable for &str. * Update signature. * Update children to Html in examples. * Remove unnecessary dereferencing. * Rollback nested_list example. * Fix comment. * Convert to Pattern Matching. * Add tracing issue. * Rename Renderable to ToHtml. * Move ToHtml to yew::html. * Convert more to match pattern.
TodoMVC Example
This is an implementation of TodoMVC for Yew.
Unlike other implementations, this stores the full state of the model, including: all entries, entered text and chosen filter.
Concepts
- Uses
gloo_storageto persist the state Refsare used to manipulate DOM elements after they're rendered (to automatically focus input fields for instance)
Improvements
- Use
yew-routerfor the hash based routing - Clean up the code
Running
Run this application with the trunk development server:
trunk serve --open