---
title: "Waqas Khan (@waqaskhandev) | Hashnode"
description: "Frontend Developer. Read the latest articles by Waqas Khan on Hashnode."
url: "https://hashnode.com/@waqaskhandev"
---

@waqaskhandev

# Waqas Khan

@waqaskhandev · Joined September 2022

Frontend Developer

### [How to build a REST API in JavaScript](https://waqasblogs.hashnode.dev/how-to-build-a-rest-api-in-javascript?utm_source=hashnode&utm_medium=feed)

Building a REST API can be a complex and daunting task, but with the right tools and knowledge, it can be done with relative ease. In this blog, we will explore the process of building a REST API with JavaScript, from scratch. What is a REST API? A R...

5 min read · [waqasblogs.hashnode.dev](https://waqasblogs.hashnode.dev/how-to-build-a-rest-api-in-javascript?utm_source=hashnode&utm_medium=feed)

[May 1, 2023](https://hashnode.com/posts/how-to-build-a-rest-api-in-javascript/644fa034df71641002f6c420)

### [How to Globally Manage States in React?](https://waqasblogs.hashnode.dev/how-to-globally-manage-states-in-react?utm_source=hashnode&utm_medium=feed)

React Context provides a convenient way to manage state globally without the need for prop drilling. Prop drilling can be a tedious and error-prone process of passing props from a parent component to deeply nested child components through a chain of ...

4 min read · [waqasblogs.hashnode.dev](https://waqasblogs.hashnode.dev/how-to-globally-manage-states-in-react?utm_source=hashnode&utm_medium=feed)

[Apr 28, 2023](https://hashnode.com/posts/how-to-globally-manage-states-in-react/644c28244396174a449f1791)

### [Managing React Complex State with the useReducer()](https://waqasblogs.hashnode.dev/managing-react-complex-state-with-the-usereducer?utm_source=hashnode&utm_medium=feed)

Discover how to simplify complex state management in React with useReducer Hook. Learn when to use it, how it works, and best practices for state management

5 min read · [waqasblogs.hashnode.dev](https://waqasblogs.hashnode.dev/managing-react-complex-state-with-the-usereducer?utm_source=hashnode&utm_medium=feed)

[Apr 20, 2023](https://hashnode.com/posts/managing-react-complex-state-with-the-usereducer/6440bd4caf9c524d9075b5a4)

### [Breaking the Rules with useImperativeHandle Hook in React](https://waqasblogs.hashnode.dev/breaking-the-rules-with-useimperativehandle-hook-in-react?utm_source=hashnode&utm_medium=feed)

Intro: In React, a parent component passes props down to a child component, and if the parent component needs to call a function defined in the child component, it typically must be defined in the parent component and then passed down. However, there...

3 min read · [waqasblogs.hashnode.dev](https://waqasblogs.hashnode.dev/breaking-the-rules-with-useimperativehandle-hook-in-react?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2023](https://hashnode.com/posts/breaking-the-rules-with-useimperativehandle-hook-in-react/643e196303c54e8cd707607c)

### [Use Cases, Best Practices and Limitation of useState Hook in React.](https://waqasblogs.hashnode.dev/use-cases-best-practices-and-limitation-of-usestate-hook-in-react?utm_source=hashnode&utm_medium=feed)

Intro React is a popular JavaScript library for building user interfaces. One of the key features of React is the ability to manage state using hooks. The useState hook is one of the most commonly used hooks in React. In this blog, we will explore ho...

4 min read · [waqasblogs.hashnode.dev](https://waqasblogs.hashnode.dev/use-cases-best-practices-and-limitation-of-usestate-hook-in-react?utm_source=hashnode&utm_medium=feed)

[Apr 18, 2023](https://hashnode.com/posts/use-cases-best-practices-and-limitation-of-usestate-hook-in-react/643e13783fa45cc75873b2e8)
