Thinking about ReactJS Refactor #184
Replies: 3 comments 12 replies
-
Thanks for opening this discussion, actually at first when choosing tech stack, I was once thinking about using either React, Vue, or Svelte for the frontend framework. but the key reason why I choose to use Vanilla javascript (or vanilla typescript per se) is because of the performance, remembering that Xploer used Electron before which is also consuming a high amount of resources. And even for now, I'm still not sure how the performance will go using one of the frameworks with Tauri. I tried my friend project that is written in React wrapped inside Tauri and it consumes about 300 MB of RAM (not sure whether the program itself is not being optimized or it's the tradeoff of using React) while Xplorer only consumes about 150 MB of RAM for opening a directory (excluding file operation). I'm also a fan of React, Vue, and Svelte and indeed it really boosts productivity for writing code, instead of manually creating elements, appending them, managing them, I can directly call the state change, however, at the same time, those frameworks consume a larger amount of resources than vanilla javascript does. However, I'm open minded, if you can show me that using those frameworks won't affect the performance so much (what I mean by this is the tradeoff of using those frameworks is not too much) remembering that vanilla javascript indeed always gives me a lot of bugs, I can decide to refactor it. I think this topic is quite interesting to discuss... |
Beta Was this translation helpful? Give feedback.
-
Update on this: code is being pushed here for the react refactor. I've been working on refactoring the data flow to support the updated react structure using redux and redux sagas to manage application side-effects. An initial version of this has been pushed that should be working, although I've not had the chance to rigorously test or document the code. I'll begin work on the react side of the refactor soon, although I would love thoughts on the initial data flow refactor if people have any. |
Beta Was this translation helpful? Give feedback.
-
Any further movements on this topic? Preact or vue with unocss gets my vote |
Beta Was this translation helpful? Give feedback.
-
Hey all, I've been poking around within the frontend codebase (
src/
), and I'd love to discuss the idea of using ReactJS to handle the UI rendering within the application. I see that ReactJS is used within the documentation code (src/docs/
), and I'm curious if there's a specific reason this isn't being used within the main application UI code. As projects start to get larger and more complex I find that working within a UI framework (ReactJS, AngularJS, VueJS) helps manage truth sources and avoid annoying bugs in a potentially much cleaner way, but if there's specific reasons why the project doesn't use such frameworks I'd also love to discuss those.If it's of any use I've been exploring how this could look should this idea be considered further in this repository. In this specific repo I'm using a Tauri backend hosting a ReactJS frontend with Redux managing data transfer and caching b/w the frontend and Rust backend.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions