Replies: 2 comments 6 replies
-
You would likely need to put the JavaScript file under the asset folder then include it in the HTML output by Leptos. In your
Assuming that you have a |
Beta Was this translation helpful? Give feedback.
0 replies
-
We had the same discussion on Discord. For anyone future readers: wasm-bindgen is how you import JavaScript into any Rust/WASM project so that you can call it from Rust https://rustwasm.github.io/wasm-bindgen/examples/import-js.html |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There seems to be no examples of importing JavaScript. Can you tell me how to import JavaScript into the Leptos project
Beta Was this translation helpful? Give feedback.
All reactions