The Most anticipated and popular State of Javascript 2020 results are out today.
So Let’s find out, some of the highlights from the survey results.
Front End Frameworks
React was the winner for the last four years but now, Svelte has taken its place.
React is in 2nd place now.
Back End Frameworks
Next.js is the winner of 2020 for backend development.
Testing
When concerned with Testing, Testing library is the winner here followed by the Jest framework as the second winner.
Top comments (8)
Thanks for sharing these. The data is very interesting. Here's some things it made me wonder about.
New Devs Learn New Frameworks (not old)?
If you look at the data it seems to indicate that new devs learn new frameworks and this causes them to become "popular". Consider how popular React is, but now it is 2nd to Svelte (probably simply because it is newer).
Does Anyone Like Current Frameworks?
Also, the data could also indicate that no one really likes the older frameworks because as soon as one emerges then it becomes the new favorite.
This cycle of continual throwing away the old because something new emerged is quite a challenge and is probably somewhat false because someone who has been using React for a few years on numerous and/or large projects certainly isn't suddenly rewriting in the new Svelte.
Multiple Codebases?
This also seems to indicate that if devs are taking up these new favorites and have been developing for 5 years then they have multiple codebases (all in different frameworks) and is probably unsustainable for a company.
Really great observations and insights. Thanks for sharing it 🙏
How did Next.js end up in backend frameworks?
Next.js is primarily used for creating Server Side rendered applications using React. They are also used for static site generation as an alternative to Gatsby
So Next.js is used for creating SSR applications but the framework by itself is based on React and that's a frontend library right? Libraries/frameworks like Node or Deno are in my mind backend?
Next.js allows us to write both front-end and back-end code. It runs on the server-side. So using just Next.js we can write front-end code using React and also back-end code. Usually backend code is written under
pages/api
folder in Next.js appNice! Think all the time Next.js is a React library just like Gatsby but focused on Server side rendering (instead of Static site generation like Gatsby). Nice to know!
Next.js looks like a front-end only but that's not the case. It has access to node APIs and we can also use npm packages directly in Next.js apps so there is no need of maintaining separate codebases for front-end and back-end.
It's also easy to use static site generator as compared to Gatsby