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
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.
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.