use yew::prelude::*; enum Msg { AddOne, SubOne, } struct Model { link: ComponentLink, value: i64, } impl Component for Model { type Message = Msg; type Properties = (); fn create(_props: Self::Properties, link: ComponentLink) -> Self { Self { link, value: 0, } } fn update(&mut self, msg: Self::Message) -> ShouldRender { match msg { Msg::AddOne => { self.value += 1; true } Msg::SubOne => { self.value -= 1; true } } } fn change(&mut self, _props: Self::Properties) -> ShouldRender { false } fn view(&self) -> Html { html! { <>

{"gpx.thermokar.st"}

{"This client-side tool is for merging "} {"GPX files"} {". Please note, this has only been tested on GPX files produced by "} {"Garmin"} {" and "} {"Strava"} {" - your mileage may vary."}

{ self.value }


{"https://github.com/thermokarst/gpx-web-utils"}

} } } fn main() { yew::start_app::(); }