How to Fix "replaceAll is not a function" Errors in JSLearn what is the root cause and how you can fix "replaceAll is not a function" errors in JavaScript. Ferenc Almasi β’ 2022 November 10 β’ π 1 min read
How to Fix "serializes to the same string" Errors in JestLearn how you can fix "serializes to the same string" errors in Jest using the correct matchers for expect statements. Ferenc Almasi β’ 2022 November 08 β’ π 1 min read
How to Properly Pass Params to on:click in SvelteLearn how you can properly pass parameters to function calls inside on:click event handlers in Svelte Ferenc Almasi β’ 2022 October 28 β’ π 2 min read
Fix "cannot read properties of null (reading length)" in JSLearn what is the cause, and how you can fix 'Uncaught TypeError: Cannot read properties of null (reading 'length')' errors in JavaScript. Ferenc Almasi β’ π 2023 March 17 β’ π 3 min read
Two Ways to Get Enum Keys by Values in TypeScriptLearn how you can get enum keys by their values in TypeScript using two different methods. Ferenc Almasi β’ 2022 September 28 β’ π 2 min read
How to Extend Multiple Classes in TypeScript With MixinsLearn how you can get around extending multiple classes in TypeScript using a mixin. Ferenc Almasi β’ 2022 September 26 β’ π 2 min read
Two Ways to Force Types in TypeScriptLearn how you can force types in TypeScript using two different syntaxes. Ferenc Almasi β’ 2022 September 26 β’ π 2 min read
How to Easily Extend Interfaces in TypeScriptLearn how you can extend your interfaces in TypeScript with other interfaces. Ferenc Almasi β’ 2022 September 23 β’ π 3 min read
How to Correctly Check Undefined in TypeScriptLearn how you can correctly check if your variables are undefined in TypeScript. Ferenc Almasi β’ 2022 September 21 β’ π 2 min read
Extending Types in TypeScript The Right WayLearn how you can extend types in TypeScript using the & operator. Ferenc Almasi β’ π 2023 January 05 β’ π 2 min read
3+1 Ways to Declare Global Variables in TypeScriptLearn what are the different ways to declare global variables in your TypeScript app. Ferenc Almasi β’ 2022 September 20 β’ π 3 min read
How to Check Variable Types in TypeScriptLearn how you can check the type of your variables in TypeScript with the typeof and instanceof keywords. Ferenc Almasi β’ 2022 September 19 β’ π 3 min read
4 Ways to Convert Strings to Booleans in TypeScriptLearn what are the different ways to convert strings to boolean in Typescript in a type-safe way. Ferenc Almasi β’ 2022 September 19 β’ π 4 min read
Why You Should Not Use Classes in React Testing LibraryLearn why you should not be using class names in React Testing Library for querying your elements. Ferenc Almasi β’ 2022 September 16 β’ π 3 min read
How to Fix "React Hook is Called Conditionally" ErrorsLearn how you can resolve "React hook is called conditionally" error messages in your React app. Ferenc Almasi β’ 2022 September 15 β’ π 3 min read
What Should You Use Instead of QuerySelector in ReactLearn how should you work with document.querySelector properly inside React. Ferenc Almasi β’ 2022 September 14 β’ π 3 min read
How to Test Component Functions In React Testing LibraryLearn how you can properly test functions inside your component in React Testing Library. Ferenc Almasi β’ 2022 September 14 β’ π 3 min read
How to Get All Form Values on Submit in ReactLearn how you can properly grab all form data at once in React using a state object with useState. Ferenc Almasi β’ 2022 September 13 β’ π 8 min read
How to Easily Pass Data From Child to Parent in ReactLearn how you can easily pass state and data from your child components to your parent components in React. Ferenc Almasi β’ 2022 September 13 β’ π 3 min read
How to Get Rid of Bullet Points in CSSLearn how you can properly get rid of bullet points from your list items in CSS using the list-style-type property. Ferenc Almasi β’ 2022 September 13 β’ π 2 min read
Exclude Any Class Name in CSS With This SelectorLearn how you can exclude any selector in CSS using the :not pseudo class. Ferenc Almasi β’ 2022 September 12 β’ π 2 min read
How to Disable Text Selection in CSS Using One RuleLearn how you can use the user-select property in CSS in order to prevent users to select certain elements on the page. Ferenc Almasi β’ 2022 September 12 β’ π 1 min read
How to Refresh Pages in React With One Line of CodeLearn how you can properly trigger a page refresh in React with one line of code. Ferenc Almasi β’ 2022 September 12 β’ π 1 min read
How to Properly Use setTimeout in ReactLearn what is the proper way to use setTimeout inside your React components Ferenc Almasi β’ 2022 September 09 β’ π 4 min read
3 Ways to Get Query Params in React (Without Router Too)Learn how you can access query params in your React components in React Router v6, v5, and without using React Router. Ferenc Almasi β’ π 2023 March 17 β’ π 2 min read
Disabling Buttons in React Based on Input FieldsLearn how you can properly disable and enable buttons in React based on the value of other input fields. Ferenc Almasi β’ 2022 September 08 β’ π 2 min read
How to Test onChange Events in React Testing LibraryLearn how you can properly test the onChange event of your components in React Testing Library. Ferenc Almasi β’ 2022 September 04 β’ π 2 min read
Testing Disabled Buttons in React Testing LibraryLearn how you can properly test whether your buttons or disabled or enabled in React Testing Library. Ferenc Almasi β’ 2022 September 04 β’ π 1 min read
Properly Testing Button Clicks in React Testing LibraryLearn how you can properly test button clicks in React Testing Library to test your UI events. Ferenc Almasi β’ 2022 September 03 β’ π 1 min read
How to Fix "Functions are not valid as React child" ErrorsLearn what is the root cause, and how to fix "Functions are not valid as React child" errors in your React app. Ferenc Almasi β’ 2022 July 25 β’ π 2 min read
How to Fix "JSX element must be wrapped in enclosing tag"Learn what is the root cause and how to fix "Adjacent JSX elements must be wrapped in an enclosing tag" errors in your React app. Ferenc Almasi β’ 2022 July 25 β’ π 3 min read
How to Fix " Received false for non-boolean attribute" ErrorsLearn what is the root cause, and how to fix "Warning: Received false for a non-boolean attribute className." warnings in React. Ferenc Almasi β’ 2022 July 25 β’ π 1 min read
How to Fix "Each child should have a unique key prop"Learn what is the root cause, and how to fix "Warning: Each child in a list should have a unique "key" prop." warnings in your React app. Ferenc Almasi β’ 2022 July 22 β’ π 2 min read
How to Send Query Params in GET and POST in JavaScriptLearn how you can send query parameters in your GET and POST in JavaScript, and how to create helper functions for reusing them. Ferenc Almasi β’ 2022 July 21 β’ π 4 min read
How to Create Associative Arrays in JavaScriptLearn what are associative arrays, and how they can be created and used in JavaScript in place of regular arrays. Ferenc Almasi β’ 2022 July 20 β’ π 2 min read
How to Fix "Maximum call stack size exceeded" Errors in JSLearn what is the root cause and how you can fix "Uncaught RangeError: Maximum call stack size exceeded" errors in JavaScript. Ferenc Almasi β’ 2022 July 17 β’ π 2 min read
How to Fix "Nothing to repeat" Errors in JavaScriptLearn what is the root cause and how you can fix "Uncaught SyntaxError: Nothing to repeat" errors in JavaScript. Ferenc Almasi β’ 2022 July 16 β’ π 2 min read
How to Fix "cannot set properties of null" Errors in JSLear what is the root cause and how you can fix "Uncaught TypeError: Cannot set properties of null (setting 'value')" errors in JavaScript. Ferenc Almasi β’ 2022 July 14 β’ π 3 min read
How to Fix "Illegal return statement" Errors in JavaScriptLearn what is the root cause of and how to fix "Uncaught SyntaxError: Illegal return statement" errors in your JavaScript code. Ferenc Almasi β’ 2022 July 12 β’ π 3 min read
How to Fix "illegal character u+" Errors in JavaScriptLearn what is the cause, and how you can fix "Uncaught Syntaxerror: illegal character u+" errors in JavaScript. Ferenc Almasi β’ 2022 July 12 β’ π 2 min read
How to Fix Uncaught URIError: URI malformed Errors in JSLearn what is the root cause, and how can you fix "Uncaught URIError: URI malformed" errors in your JavaScript code. Ferenc Almasi β’ 2022 July 11 β’ π 2 min read
Fix "cannot read properties of undefined (reading map)" in JSLearn what is the cause, and how you can fix "Uncaught TypeError: Cannot read properties of undefined (reading 'map')" errors in JavaScript. Ferenc Almasi β’ π 2023 March 17 β’ π 2 min read
Fixing "Delete of an unqualified identifier" Errors in JSLearn how to easily fix "Uncaught SyntaxError: Delete of an unqualified identifier in strict mode." errors in JavaScript. Ferenc Almasi β’ 2022 July 11 β’ π 2 min read
How to Fix "$ is not defined" Errors in JavaScriptLearn what causes "Uncaught ReferenceError: $ is not defined" errors in JavaScript, and how you can fix them in various ways. Ferenc Almasi β’ 2022 July 10 β’ π 3 min read
How to Fix "Unexpected token o in JSON at position 1"Learn how you can fix uncaught syntaxerror unexpected token o in json at position 1 errors in JavaScript, and what is the root cause of this error. Ferenc Almasi β’ 2022 July 09 β’ π 3 min read