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:1 min read·May 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.3 min read·Dec 15, 2022--3--3
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…2 min read·Oct 14, 2022--1--1
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…1 min read·Sep 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…1 min read·Sep 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.2 min read·Sep 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…1 min read·Sep 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…1 min read·Sep 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…2 min read·Sep 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…4 min read·May 5, 2020----