Blog
Get the key of an object by its value
January 22, 2023 • 3 min read • TypeScript
Learn how you can get the key of an object by its value with JavaScript and TypeScript.
Select box component with React and TypeScript
January 21, 2023 • 4 min read • React
Learn how to create a reusable select box component with React and TypeScript.
Should we use TypeScript enums?
January 12, 2023 • 9 min read • TypeScript
Should we use TypeScript enums? Looking to replace your TypeScript enums? Consider union types or POJOs with as const annotations.
Check if a value is a number in JavaScript
November 08, 2022 • 4 min read • JavaScript
Learn the best way to check if a value is a number in JavaScript.
Conditionally adding attributes and props in React
October 20, 2022 • 4 min read • React
Learn how to conditionally add attributes and props in your React components.
Pass style as a prop with React and TypeScript
October 10, 2022 • 2 min read • React
Learn how to add the correct TypeScript type for a style prop in React.
Build a context menu with React and TypeScript
October 01, 2022 • 6 min read • React
Learn how to use custom hooks and reusable React components to build a context menu.
How to use the React useState hook
September 23, 2022 • 12 min read • React
Learn how to manage local state in React components using the useState hook.
The React useState hook and lazy initialization
September 18, 2022 • 3 min read • React
Learn how to use an initializer function with useState for expensive state initialization.
Immutable operations on arrays
September 17, 2022 • 5 min read • JavaScript
Learn how to sort, add, update, and remove from an array in an immutable way in JavaScript.
- 1
- 2
- 3
- 4
- 5
- 6