Articles

Explore all newline tutorials

Tags
Author
Sort By
Most Recent
Most Popular
Highest Rated
Reset
TypeScript and React - how to prevent bugs by typing props, state, and hooks

TypeScript is fantastic to use with React because it can help us catch a lot ...

Thinking in React Tutorial: a custom hook to capture keystrokes in TypeScript

Thinking in React can feel weird if you're not used to it. In this post, I'm ...

A Simple Reducer Example with TypeScript, No Need for Redux or MobX

In this post, we'll cover React Reducers (with the useReducer hook). This tut...

A Guide to React createContext with TypeScript

In this post, we will dive into a technique for sharing data between React co...

Handling File Fields using React Hook Form

In this article, we will learn how to handle file uploads using react-hook-form.

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 ...

How to Use useReducer with TypeScript

The useReducer hook is a hook that allows you to create a state, update it, a...

How to Use React Refs with TypeScript

Refs provide a way to access DOM nodes or React elements created in the rende...

How to Create a React Form: Controlled vs. Uncontrolled Components

In this article, we'll cover two ways to create React forms: the HTML way, wi...

How to Use React Context with TypeScript

React Context provides a way to pass data through the component tree without ...

How to Use State in React Components with TypeScript

When you need to store some data that won't be shared across components you c...

Measuring Performance in Create React App

Create React App includes a built-in tool for measuring the real life perform...