KSKalpesh Singhinknowkalpesh.hashnode.dev·Sep 4, 2020 · 18 min readLearning Unit testing - Jest and React Testing LibraryTable of Content Jest, React Testing library and Enzyme Unit testing in Create React App (CRA) Mocking - When to use what? Async function testing Route testing Assertions, global methods, and cleanup Formik testing What you should avoid with React T...00
KSKalpesh Singhinknowkalpesh.hashnode.dev·Jul 16, 2020 · 11 min readBuilding a React component using 7 guiding principlesTable of Content Getting started Principle #1 - Zero prop rendering Principle #2 - Logical grouping Principle #3 - Type checking Principle #4 - Enums Principle #5 - Naming conventions Principle #6 - Explicit prop declaration Principle #7 - Custom de...00
KSKalpesh Singhinknowkalpesh.hashnode.dev·Jul 6, 2020 · 8 min readShort and shallow thoughts on library versioningTable of Content What is versioning? Types How do you semantic version? When should we bump the version? Git tags Cultural, Superstitions and Marketing Gimmicks Further learnings Resources What is versioning? The versioning is a practice in softwar...00
KSKalpesh Singhinknowkalpesh.hashnode.dev·Jun 28, 2020 · 13 min readThe journey of building a tiny JS libraryTable of Content GitHub repository Folder structure Installing dependencies Dismantling package.json Types of JS Module Rollup configuration Other configurations The human side Tree Shaking The healthy library Pre-publishing hygiene Release I was c...00
KSKalpesh Singhinknowkalpesh.hashnode.dev·Jun 20, 2020 · 11 min readUnderstanding JavaScript ClosureTable of Content How to read this article How I learned Closure Understanding JS execution context How powerful is Closure? Building jQuery one() function Building simple generator function How to read this article This article refers to and explai...00