mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* simple counter application with functional components * clean up some comments * use the word 'function' instead of 'functional' Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com> * add the counter functional example package to workspace root cargo toml * add data-trunk link tag in index html * include counter functional into the examples readme file Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
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.