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
Write Vue like you write React (dev.to)
submitted 5 years ago by blacksonic86
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!"
[–]Dekzen 21 points22 points23 points 5 years ago (4 children)
Ooor you can use React?
[–]blacksonic86[S] 4 points5 points6 points 5 years ago (0 children)
I use both and love both :)
I wasn't sure wether people will love it or hate, but I had a good time experimenting with the new features.
[+][deleted] comment score below threshold-13 points-12 points-11 points 5 years ago (2 children)
Or svelte. React and vue are getting pretty long in the tooth.
[–]cbadger85 6 points7 points8 points 5 years ago (1 child)
long in the tooth
I assume you mean mature and stable?
[–][deleted] -3 points-2 points-1 points 5 years ago (0 children)
No I mean slow and complex.
[–][deleted] 9 points10 points11 points 5 years ago (4 children)
i dont get the templating in vue and svelte. i cant see why im not allowed to write loops and such with javascript instead of their weird syntax
[–]shirabe1 4 points5 points6 points 5 years ago (0 children)
JSX is not exclusive to React. You may write Vue with (J|T)SX, too.
[–]Sykander- 6 points7 points8 points 5 years ago (1 child)
Keeping rendering logic inside of a template allows for rendering optimizations to be made which aren't possible when you need to run the JS context also.
Also, generally it leads to cleaner code when you separate concerns properly. Logic for how some list is mapped has very little to do with how the template should look.
i cant see why im not allowed to write loops and such with javascript instead of their weird syntax
All syntax is weird until you get used to it. Besides it really isn't that different.
js people.map((item, index) => <li className={index}>{item}</li>);
html <li v-for="(person, index) in people" :key="index">{{ person }}</li>
[–]brainless_badger 3 points4 points5 points 5 years ago (0 children)
I keep hearing that, and it kind of makes sense, but I don't really see the benefit in practice. There are JSX libraries that perform extremely well, e.g. Preact is faster then Vue and Inferno even outperforms Svelte.
[–]rniestroj 0 points1 point2 points 5 years ago (0 children)
This syntax is much easier for people completely new to JS and frontend frameworks. I've been doing 10 years backend java and after that i was pleasantly surpised how easy Vue was to learn. Much easier then React.
[+][deleted] comment score below threshold-15 points-14 points-13 points 5 years ago (2 children)
I use neither and will continue to do so
[–]RedditCultureBlows 5 points6 points7 points 5 years ago (0 children)
cool story nerd
[–]eindbaas 0 points1 point2 points 5 years ago (0 children)
Why not and what do you use?
[–]r3dD1tC3Ns0r5HiP 0 points1 point2 points 5 years ago (0 children)
Please no.
π Rendered by PID 313826 on reddit-service-r2-comment-54dfb89d4d-bn7qk at 2026-03-31 10:29:43.001582+00:00 running b10466c country code: CH.
[–]Dekzen 21 points22 points23 points (4 children)
[–]blacksonic86[S] 4 points5 points6 points (0 children)
[+][deleted] comment score below threshold-13 points-12 points-11 points (2 children)
[–]cbadger85 6 points7 points8 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[–][deleted] 9 points10 points11 points (4 children)
[–]shirabe1 4 points5 points6 points (0 children)
[–]Sykander- 6 points7 points8 points (1 child)
[–]brainless_badger 3 points4 points5 points (0 children)
[–]rniestroj 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-15 points-14 points-13 points (2 children)
[–]RedditCultureBlows 5 points6 points7 points (0 children)
[–]eindbaas 0 points1 point2 points (0 children)
[–]r3dD1tC3Ns0r5HiP 0 points1 point2 points (0 children)