Jim KellerHow to use the highlight option in an AWS CloudSearchDomain request in JavascriptThe documentation for the CloudSearchDomain client in the javascript SDK says the following about the ‘highlight’ parameter:May 31, 2023May 31, 2023
Jim KellerinLevel Up CodingPlease stop including color names in your CSS classes.Class names like “button-blue” defeat the purpose of having a class in the first place.Dec 15, 20223Dec 15, 20223
Jim KellerinJavaScript in Plain EnglishHow to Fetch Data After User Input With react-queryMost examples of react-query, the most widely used query package for React, describe how to run the query as soon as the component is…Oct 14, 20221Oct 14, 20221
Jim KellerTypeScript type for setTimeout or setInterval timersI was recently working on a TypeScript project where I had to store an array of timers so that I could reference them later (and call…Sep 30, 2022Sep 30, 2022
Jim Kellernpm debug module not showing any messages in the browser? Here’s whyThe debug module is very useful for avoiding console.log output in your code, and it is compatible with both NodeJS and the browser…Sep 29, 2022Sep 29, 2022
Jim KellerinLevel Up CodingChanging my approach to dependency injection in a React appI was recently inspired by the posts below to incorporate a form of dependency injection into a ReactJS application using React Context.Sep 29, 2022Sep 29, 2022
Jim KellerMocking scrollHeight and getBoundingClientRect in JestI needed to create tests for a method that determined the proper height of a dynamic element, using either scrollHeight if it’s available…Sep 19, 2022Sep 19, 2022
Jim KellerTesting raw or static HTML in Jest with TypeScriptI wanted to write Jest tests for some fairly basic DOM reading/manipulation functions. So I thought I’d just create a static HTML file to…Sep 11, 2022Sep 11, 2022
Jim KellerLoading custom modules in TypeScript 4I was trying to set up a raw HTML fixture to run Jest tests on some DOM manipulation functions, and I ran into difficulty getting…Sep 11, 2022Sep 11, 2022
Jim KellerThree Phrases to use in Difficult ConversationsIn the early days of my management career, I dreaded having difficult or potentially confrontational conversations with my team. Whether…May 5, 2020May 5, 2020