Back to Yew

TodoMVC Example

examples/todomvc/README.md

0.18.0819 B
Original Source

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_storage to persist the state
  • Refs are used to manipulate DOM elements after they're rendered (to automatically focus input fields for instance)

Improvements

  • Use yew-router for the hash based routing
  • Clean up the code

Running

Run this application with the trunk development server:

bash
trunk serve --open