Subbiah ChandruSolution for problem with useState and eventHandlersWith react functional programing we got a problem of accessing latest react state inside addEventListener. “mouseDownCounter“ value will…May 21, 20221May 21, 20221
Subbiah ChandruSCSS mixins for reusable media query and scoping stylesLet’s start with a simple SCSS. In this I will be using BEM modal css naming. Reference (http://getbem.com/naming/)Apr 28, 2022Apr 28, 2022
Subbiah ChandruArray.at()The at() method takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers…Apr 25, 2022Apr 25, 2022
Subbiah ChandruDo not pollute your app rootconfigeslint, prettier, webpack, etc,. pollutes the root of a project with lot’s of config filesApr 22, 2022Apr 22, 2022
Subbiah ChandruOptionally control state from parent component in ReactuseFallbackState is almost same as useState, but it takes 3 props instead of 1.Apr 21, 2022Apr 21, 2022