Today we have an excellent article that was featured on both Hashnode and Daily Dev comparing function declarations and expressions. We then have two great React articles. The first about simplifying your code with the setState hook, and the secon about configuring Prettier and ESLint for React.
Quote of the Day
"A successful website does three things: It attracts the right kinds of visitors. Guides them to the main services or product you offer. Collect Contact details for future ongoing relation." - Mohamed Saad
Todays Articles
JavaScript Functions: Declare or Express?
Oh, JavaScript... That majestic, elusive beast we developers try to tame.. (I mostly fail). In my newbie quest for JS knowledge, I came across this concept of "declaring" a function vs "expressing" it. Whaaaat? 🤔 I did what I always do. I googled. And then I googled some more. I fell down a rabbit hole of articles and official docs and tweets. And this (in summary) is what I came up with.
Simplify your React code using shorter setState syntax
In this article, we will see how we can use the new ES6 shorter syntax which will make the setState call a lot simpler. So Let’s start with some background knowledge.
Configuring prettier and eslint plugins for React from scratch
Hi everyone, how are you? Today we are going to configure the prettier and eslint plugins for a React project from scratch. We will be using VSCode as the default IDE, and all of the extension links in below section will point to VSCode extensions. If you are using any other IDE, you can find respective extensions on internet. Let's got through the steps one by one in the same order as below. Or, if you would like to check the final version of what we are going to discuss in below section, go to the GitHub repo with complete settings.