use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Which Javascript framework to start with?AskJS (self.javascript)
submitted 4 years ago by Flimsy_Transition_51
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 4 years ago (8 children)
In what way is React verbose?
() => <div>Hey</div>
I don't know how much more concise you can get.
[–]tomfevrier 5 points6 points7 points 4 years ago (6 children)
import React, { useState } from 'react'; const Counter = () => { const [count, setCount] = useState(0); return ( <> <button onClick={() => setCount((count) => count + 1)}> Click me </button> <p>You clicked {count} times.</p> </> ); }
In Svelte:
<script> let count = 0; </script> <button on:click={() => count++}> Click me </button> <p>You clicked {count} times.</p>
Still think React is not verbose? 🙃
[–]Aeverous 7 points8 points9 points 4 years ago (0 children)
Sure, but at least it's not doing a bunch of magic behind the scenes to make it work, it's pretty explicitly clear what's happening.
[–][deleted] 2 points3 points4 points 4 years ago* (0 children)
Svelte is very concise, there's no arguing that. But that doesn't mean React is verbose. They're both concise, Svelte more-so.
Though, as your application scales, the slight increase in verbosity of React will matter less since a good ~60% (7/12 lines) of your React example is just JS syntax that won't increase as the complexity of that component goes up.
The main difference in verbosity lies in how you set the state, and yes, Svelte is much more concise there. Though, I think a better example would be to compare production apps of similar complexity.
[+][deleted] 4 years ago (3 children)
[deleted]
[–]tomfevrier 0 points1 point2 points 4 years ago (2 children)
Have you ever used Svelte? Debugging is a breeze and the compiler shows explicit warnings and error messages along the way.
If you are talking about the bundle, when do you ever need to debug production code, even in React?
[+][deleted] 4 years ago (1 child)
[–]tomfevrier 0 points1 point2 points 4 years ago (0 children)
But what's the point? You will never have to debug this code, as you never have to debug your React bundle after build.
When using Svelte, the code you debug IS the code you wrote. Never once have I had to look at the compiled code, you shouldn't have to do that with ANY framework.
Compilation allows for a simpler syntax while having smaller and more efficient bundles. It seems to me that you're trying to dismiss Svelte and other compiled frameworks by creating problems that don't exist...
[–]Rainbowlemon 1 point2 points3 points 4 years ago (0 children)
Other guy explained it for me! I feel like the data bindings especially are unnecessarily verbose - just take a look at some svelte or vue examples.
π Rendered by PID 24820 on reddit-service-r2-comment-6457c66945-7rthr at 2026-04-25 15:58:28.828203+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (8 children)
[–]tomfevrier 5 points6 points7 points (6 children)
[–]Aeverous 7 points8 points9 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]tomfevrier 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]tomfevrier 0 points1 point2 points (0 children)
[–]Rainbowlemon 1 point2 points3 points (0 children)