JavaScript Newsletter: 19th November 2020

Subscribe to my newsletter and never miss my upcoming articles

All of todays articles come from dev.to, which is another excellent developer community platform. If you aren't already registered, I'd highly encourage you to do so. We start with a great comparison between Vue and React, before moving on to testing in React. Finally we have an article on how to write your very own webpack plugin!

Quote of the Day

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.” - Anon.

Todays Articles

React vs Vue – A Quick Comparison (2020 Update)

By Tom Grabski

The number of different JavaScript frameworks and libraries definitely doesn’t make it easy to make a choice. This is why we started to provide comparisons as well as other posts so you can decide with a bit more confidence. Last week we compared React vs Angular, which you can read here. Today I would like to help you choose between React and Vue.js.

Test your React components and APIs with React Testing Library, Jest, Typescript, and Axios

By Oğuzhan Olguncu

Testing is one of the crucial parts of the software development process and mostly overlooked by developers. Usually, developers avoid writing tests, because it takes more time than just simply developing a product if you are not familiar with tests. But there is only one way to make sure your code works as you keep working on it. Imagine a scenario where you develop a new component that works with your old component, you might be somehow modified your components, so how do you make sure your old component is working as you expected?. You can't if you avoid writing tests. Period.

Building your own Webpack Plugin

By Jasmin Virdi

In the last post I discussed about the bundling and architecture of Webpack. In this post I would be focussing on building webpack plugins and how it can help you to solve your bundling problems. Webpack is built on plugin system which is used in webpack configurations and helps us in extending webpack's implementation which cannot be achieved by loaders and parsers. I will be taking a simple example of a plugin which takes few arguments and prints them when webpack's lifecycle hooks are emitted. So let's begin building our own webpack plugin.

No Comments Yet