DEV Community

loading...

Svelte vs React

krrishdhaneja profile image Krrish Dhaneja ・1 min read

From a past few days I have been thinking πŸ€” that should I use Svelte or React in a poject, Because I need to make a beautiful and responsive UI, so what could be the best option for this, though I have googled it, but still I can't decide.

Discussion (4)

pic
Editor guide
Collapse
jenbutondevto profile image
Jen

If you are working alone, then you can use whatever you prefer writing more. If there are more developers, it’ll be more efficient if you pick the framework that is the most popular amongst you.

Since svelte is relatively new compared to react, it might be harder to find answers/solutions if you get stuck.

Beautiful and responsive will come from the S/CSS you write. Both svelte and react will handle how reactive (to user input) it is.

Collapse
krrishdhaneja profile image
Krrish Dhaneja Author

Yeah, I am working alone πŸ˜…, but on Svelte’s website, the devs of Svelte are saying that it takes less lines of code to write a program in Svelte, than compared to react.

Collapse
jenbutondevto profile image
Jen

Have you written code in both? Svelte may have fewer LOC to write, but you might prefer how it is written in React. You might find that you have an IDE that does some useful completion for you, so you're not actually writing all those extra lines.

Thread Thread
krrishdhaneja profile image
Krrish Dhaneja Author

Right, that’s a good point.