yewstack / yew

Rust / Wasm framework for creating reliable and efficient web applications

Home Page:https://yew.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial uses String not AttrValue

ydirson opened this issue · comments

This is about: Inaccurate/misleading documentation (e.g. technically incorrect advice)

Problem

In this step of the tutorial, a struct is defined with String fields, and in later step those structs are used as component properties.

This looks like Anti-pattern #1. Shouldn't they be made AttrValues instead?