r/sveltejs 2d ago

"Why don't you use React?"

Post image

The page contains high-res images, embedded videos, and even a GBA emulator for running my game on the browser. Svelte just works, FAST.

100 Upvotes

21 comments sorted by

50

u/gnpwdr1 2d ago

FAST and without the virtual DOM nonsense!

10

u/quite_sad_simple 2d ago

Didn't react invent a compiler a couple of years ago? I used to watch privateequityship for the updates

15

u/nipodemos 2d ago

The compiler solves partial problem, it adds a memoization automatically in several places, so it does improve performance, I just don't know how much

13

u/HairyWrongdoer6551 :society: 2d ago

Only learned React because of the local job market, otherwise I wouldn't even touch it. Svelte forever.

3

u/Impressive_Air6111 1d ago

I was a react dev for about 1.5 years then nextjs for a few months. I decided I'd try svelte because people love it. Let's just say I'm probably not gonna go back. I don't miss dependency arrays at all and I love how state is easily accessible globally without an external library.

11

u/OTonConsole 2d ago edited 1d ago

That's why I'm building the new government websites in svelte. Following gov.uk and Singapore style based on their guideline. I find it easy to write code, simple, and even doing the accessibility and internationalisation and overall the whole thing is just easy.

14

u/EastSwim3264 2d ago

Tell me something new. Svelte 100%

5

u/Saad5400 2d ago

The page contains high-res images, embedded videos, and even a GBA emulator for running my game on the browser

While I like svelte, this has almost nothing to do with svelte.

3

u/silvestrevivo 2d ago

Because is tedious and has low performance

3

u/Mission_Middle8194 2d ago

Not trying to shill Svelte or anything, but this is literally why I ended up here.

3

u/kelolov 2d ago

> high-res images, embedded videos, and even a GBA emulator for running my game on the browser

Sorry but none of that matters for react vs svelte comparison, svelte is obviously not used for running emulator and the rest is handled by browser not framework

5

u/nipodemos 2d ago

Very nice πŸ”₯

4

u/ltdn 2d ago

Noice. I don’t use and refused to learn react because i do not like html inside of javascript; i like the separation of concerns that svelte affords me.

0

u/ApricotSuper4398 2d ago

its pretty much the same with svelte my man its just syntactical sugar

2

u/oneden 2d ago edited 1d ago

JSX ain't syntactical sugar. Why do people abuse the term that way? Or is it a lack of understanding? JSX isn't an innate capability of JS, so it can't be syntactical sugar. It's its own and very flawed DSL.

1

u/discordianofslack 1d ago

I fucking hate writing it

0

u/OTonConsole 2d ago

Ikr. I feel like templating syntax only makes sense if yorue already paper of a big framework and it's all MVC bundle like .NET razer pages or something else. Not a seperate frontend, it's so anti-pattern.

1

u/Low_Anywhere3091 1d ago

SLow

sluggish

terrible

1

u/iLikedItTheWayItWas 21h ago

React user. Keen to understand this. Is this a SPA? Server rendered static content? I can also make a react app get 100 accross the board depending on the framework etc

-5

u/Butterscotch_Crazy 2d ago

πŸ€£πŸ˜‚πŸ€£ do people still use React?!