#How do I use canvas in WASM?
1 messages · Page 1 of 1 (latest)
You need to use web_sys. You can get the element on the onmounted event, then cast it down to web_sys::canvas and use the normal canvas API. There is an example there https://github.com/kimonp/dioxus-game-of-life but it is with dioxus 0.4 and I think an older version of web_sys too