Articles

Explore all newline tutorials

Tags
Author
Sort By
Alex Bespoyasov
Most Recent
Most Popular
Highest Rated
Reset
How to Test Your First React Hook Using Testing Library

In previous posts we learned: In this post, we're going to write tests for a ...

How to Write Your First Component Test in React + TypeScript App

In the previous post, we created a unit test for a function. In this post, we...

How to Write Your First Unit Test in React + TypeScript App

Tests make sure that changes in code don't break its functionality. For testi...

How to Use Thunks with Redux Toolkit and TypeScript

Last time we used Redux Toolkit to create a todo app. Since RTK is considered...

How to Use Redux Toolkit with TypeScript

The Redux Toolkit package is intended to be the standard way to write Redux l...

How to Use Redux with TypeScript

TypeScript can provide type-safety for reducers in your application, improves...

How to Use react-hook-form with TypeScript

React Hook Form is a library that helps you to simplify form validation. It u...

How to Use fetch with TypeScript

The main problem with fetch function is that it isn't a generic function. Thi...

How to Use Generics in TypeScript

Generics in TypeScript is a way to make your code more abstract and reusable....

How to Use useCallback Hook with TypeScript

The useCallback hook returns a memoized callback that only changes if one of ...

How to Use useMemo Hook with TypeScript

The useMemo hook memoizes a function value. It is similar to caching the retu...

How to Handle Effects Using Hooks in React with TypeScript

There are 2 hooks to handle side-effects in React: The first one fires after ...