Open in app

Sign In

Write

Sign In

Nikhil Mishra
Nikhil Mishra

3 Followers

Home

About

Published in JavaScript in Plain English

·Pinned

TypeScript: Conditional Subtypes Using ‘as clause’

Using Typescript’s Mapped Types with “as clause” to create a subtype conditionally. Problem Statement While working on a project, I came across a use case where I need to derive a subtype from a parent type including only the predefined type of keys. Let’s take an example, suppose I have a type…

Typescript

3 min read

TypeScript: Conditional Subtypes Using ‘as clause’
TypeScript: Conditional Subtypes Using ‘as clause’
Typescript

3 min read


Aug 28, 2021

useReducer hook in ReactJS

In this article, we will discuss the useReducer hook of the ReactJS. We will cover the following topics: What is a useReducer hook? How useReducer works? When to use the useReducer hook? The useReducer hook is used to manage the state in your ReactJS application. Yes, you can also use the useState hook for the same…

Reactjs

4 min read

useReducer hook in ReactJS
useReducer hook in ReactJS
Reactjs

4 min read


Jun 20, 2021

this is easy

this keyword is an integral part of the Javascript language. Yet sometimes it gets confusing to detect its value under different scenarios. In this article, I’ll explain ways by which you can find out what is the value of this keyword by analysing the call- site. What is this? this represents the binding…

JavaScript

5 min read

this is easy
this is easy
JavaScript

5 min read

Nikhil Mishra

Nikhil Mishra

3 Followers

Software Engineer @xebia.

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech