Closed Chadtech closed 4 years ago
We need different pages.
What does it mean to add a page
X.rs
X
page/
pub mod x;
page/mod.rs
Model
Msg
view
init
update
main.rs
enum
We need different pages.
What does it mean to add a page
X.rs
file for anX
page to thepage/
directorypub mod x;
topage/mod.rs
Model
,Msg
,view
,init
andupdate
. So adding any of those and wiring them intomain.rs
, adding them asenum
cases for the mainMsg
andModel
.