yew/examples/counter_functional
Muhammad Hamza 4c35f95350
Bind to properties instead of attributes by default (#2819)
* Set to properties, not attributes

* fix tests

* Add tests

* enable disabled test, fmt

* Introduce @key syntax to forcefully set as attribute

* Everything compiles

* More tests

* id as property

* This was not meant to be committed

* Make test pass, fmt + clippy

* fucking rustfmt

* is this enough formatting

* that was not supposed to be commited

* apply review

* fmt

* fix CI

* will you be happy now, clippy?
2022-08-14 21:41:04 +02:00
..

Counter Example

A simple example of a counter which can be increased or decreased with the press of a button implemented using function components

Running

Run a debug version of this application:

trunk serve

Run a release version of this application:

trunk serve --release

Concepts

Demonstrates the use of function components.