Add reactjs to exisiting tauri project #13126
Unanswered
TeenCoder159
asked this question in
Q&A
Replies: 1 comment
-
you could create a new create-tauri-app project (choosing react) and just copy over the .git (the commit history) and src-tauri (should contain all the tauri stuff) folders into that new project. The only thing you probably have to modify is devUrl and frontendDist in tauri.conf.json (if you went with the first approach you can check the new project's tauri.conf.json file for these values) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because modifying innerHTML with js in tauri needs workarounds and is error-prone, I want to use react for my project. But I'm new to react and I'm unsure how to add it to my existing tauri project which uses rust for backend and I chose vanilla for it. I don't want to try and lose all the commits that I already have on my project, which is the main reason why I don't want to just copy the code over to a new project. So there are 2 solutions that I don't mind using which is that, somehow I manage to get my commits to be migrated to a new project or I integrate react into an existing project.
Beta Was this translation helpful? Give feedback.
All reactions