yew/examples/js_callback
Philip Peterson 309dbcba00
Update main yew examples (remove static dir) (#1417)
* remove static directory, move script to run_example.sh

* gitignore

* server infra

* Support --build-only

* fix npm_and_rest example

* Fix various static index.html's

* Fix spacing

* newlines at the end

* Cleanup

* tabs -> spaces

* line ending

* remove build_examples.sh

* Apply suggestions from code review

Co-authored-by: Simon <simon@siku2.io>

* format file and improve EXIT trap

Co-authored-by: Simon <simon@siku2.io>
2020-07-22 13:29:55 +02:00
..

(Asynchronous) callback from Javascript

The purpose of this example is to demonstrate a simple case of asynchronously sending a message back into the component update loop.

See https://github.com/yewstack/yew/issues/316 for discussion on what motivated this example.