I am migrating from v1 to v2 and thought I would switch from JavaScript to a Rust frontend, specifically Leptos.
But now I don't know how to properly setup my project as I previously simply had the JavaScript files outside kind of wrapping around the src-tauri folder.
I was thinking maybe create a src-ui folder as in this example (https://github.com/michalvavra/tauri-leptos-example/tree/main) or is there a more efficient way?
On that note, how do I now properly interchange data between frontend and backend? Still using the Tauri API?