News for hackers. Stuff that matters.
Re:Next.js 10 by erokar on Tuesday October 27, 2020 @02:17PM (#24910197)
I feel the same way. We've switched from React to Svelte at work. Going back to React would be a step backwards for us, so much feels needlessly overengineered with awkward APIs. React was a great improvement on Angular, but luckily things are still moving forward.
Re:Next.js 10 by tekkk on Tuesday October 27, 2020 @05:06PM (#24911891)
Well, this sounds a bit typical JS dev talk. React isn't all that terrible, it's actually quite good and battle-proven. It has great libraries, many devs are familiar with it and if you know it well you can be pretty damn productive with it.

Not to say Svelte doesn't have great innovative features, but I myself don't still feel that tempted to jump into Svelte. What some of us don't like, is the infamous JS churn where libraries are changed every year because "this new one is better".

Re:Next.js 10 by erokar on Tuesday October 27, 2020 @05:22PM (#24912081)
Some of us are attracted to JS dev because of the rapid evolution and change. React is well-tested and mature, I'm simply stating that for me personally going back to it would be frustrating after developing in Svelte.
Re:Next.js 10 by earthboundkid on Tuesday October 27, 2020 @08:41PM (#24913714)
React is extremely bloated. I don’t think it can justify its weight on content pages. If all you need are some show hide buttons and a CSS animation, it’s way too heavy. That’s a pretty good reason to look at other tools.
Re:Next.js 10 by jholman on Tuesday October 27, 2020 @11:59PM (#24915020)
If all you need are some show hide buttons and a CSS animation, do the whole thing in four or five lines of vanilla JS in an inline script tag. You're right that React is the wrong tool for the job, but so is Svelte and so is everything else discussed in this thread.
Re:Next.js 10 by fasteo on Tuesday October 27, 2020 @03:08PM (#24910696)
Which UI component library, if any, do you use with Svelte ?
Re:Next.js 10 by gedy on Tuesday October 27, 2020 @06:14PM (#24912624)
Sveltestrap[0] but needs Bootstrap for the CSS styling (I personally like the separation but YMMV)

[0] https://sveltestrap.js.org/

Re:Next.js 10 by erokar on Tuesday October 27, 2020 @03:35PM (#24910938)
UI component libraries for Svelte are a little lacking in maturity in my experience. I would recommend including a CSS library such as Bootstrap or Materialize. Tailwind is also popular, but not my cup of tea.
Re:Next.js 10 by auggierose on Tuesday October 27, 2020 @04:49PM (#24911715)
So, React is backwards, but you are using Bootstrap instead? Lol. Webdevs at their best.
Re:Next.js 10 by subsection1h on Tuesday October 27, 2020 @05:23PM (#24912090)
There are good alternatives to React that are as actively developed. There don't seem to be good alternatives to Bootstrap that are nearly as actively developed (excluding CSS utility class libraries like Tailwind).

My team recently evaluated 30-40 CSS frameworks to use with a custom component library, and we were surprised when Bootstrap was the clear winner. Other CSS frameworks have gotten buzz over the years, and we assumed something new and shiny would come out on top, but when we evaluated all of them, we saw sporadic commits, many unresolved issues (e.g., see Bulma issue 3074), small bus factors, inadequate support for keyboard navigation, and other issues.

So using Bootstrap with a newer alternative to React is valid. (Though, we're using Bootstrap with Next.js.)

Re:Next.js 10 by erokar on Tuesday October 27, 2020 @05:27PM (#24912129)
By all means, stick to your React or Java backend or whatever it is you do if that's where you feel most comfortable. No need to feel so threatened by new alternatives.
Re:Next.js 10 by reactor on Wednesday October 28, 2020 @09:43AM (#24918640)
I've had great success with http://ibm.biz/carbon-svelte for one of my side projects.
Re:Next.js 10 by fasteo on Wednesday October 28, 2020 @03:39PM (#24923231)
Looks great. Thanks.
Re:Next.js 10 by bamazizi on Tuesday October 27, 2020 @03:22PM (#24910830)
Technically any static ui library can easily be turned into reactive components in any of the frameworks. I personally use & recommend Tailwind css, you still need to design/build your UI elements and components but Tailwind helps you speed it up.
Re:Next.js 10 by dfrsol on Tuesday October 27, 2020 @03:16PM (#24910765)
How are y'all testing your svelte apps/components? Jest+Testing Lib seems to have issues calculating code coverage and there are few quirks like having to do work arounds to test slots that prevent me from totally switching over.
Re:Next.js 10 by erokar on Tuesday October 27, 2020 @03:32PM (#24910918)
Our test coverage of the Svelte apps is meagre so far to be honest.
Re:Next.js 10 by rsyring on Friday October 30, 2020 @09:52AM (#24942170)
Their response to "How do I test Svelte apps?"

"We don't have a good answer for that yet, but it is a priority."

I was interested in Svelte until I read this. When they have a good answer, I'll be interested again.

https://svelte.dev/faq#how-do-i-test-svelte-apps

Re:Next.js 10 by Existenceblinks on Sunday November 08, 2020 @01:27AM (#25023583)
The solution to this, I believe, is making template a function: https://news.ycombinator.com/item?id=25023551