---
title: "Asfaq Leeon (@leeonscoding) | Hashnode"
description: "Senior Software Engineer. Read the latest articles by Asfaq Leeon on Hashnode."
url: "https://hashnode.com/@leeonscoding"
---

@leeonscoding

# Asfaq Leeon

@leeonscoding · Dhaka, Bangladesh · Joined April 2023

Senior Software Engineer

### [React Performance in Practice: Memoization, Lazy Loading and Code Splitting](https://leeonscoding.hashnode.dev/react-performance-in-practice-memoization-lazy-loading-and-code-splitting?utm_source=hashnode&utm_medium=feed)

Most React apps are not slow because React is slow. They are slow because of two things: Too much work on render (components re-rendering and recalculating when nothing relevant changed). Too much Ja

7 min read · [leeonscoding.hashnode.dev](https://leeonscoding.hashnode.dev/react-performance-in-practice-memoization-lazy-loading-and-code-splitting?utm_source=hashnode&utm_medium=feed)

[37m ago](https://hashnode.com/posts/react-performance-in-practice-memoization-lazy-loading-and-code-splitting/6aff3c1bc92a3020cc306858)

### [Building Type-Safe Auth in React with React Hook Form, Zod and Zustand](https://leeonscoding.hashnode.dev/building-type-safe-auth-in-react-with-react-hook-form-zod-and-zustand?utm_source=hashnode&utm_medium=feed)

Auth is a good test of a React codebase. It touches forms, validation, global state, routing and an API, and every one of those can go wrong in small ways. In this post I build a small login and regis

9 min read · [leeonscoding.hashnode.dev](https://leeonscoding.hashnode.dev/building-type-safe-auth-in-react-with-react-hook-form-zod-and-zustand?utm_source=hashnode&utm_medium=feed)

[16h ago](https://hashnode.com/posts/building-type-safe-auth-in-react-with-react-hook-form-zod-and-zustand/6afe5a9bd75a52b3d6d6c0ac)

### [Fetching Data in React the Right Way: Axios + TanStack Query](https://leeonscoding.hashnode.dev/fetching-data-in-react-the-right-way-axios-tanstack-query?utm_source=hashnode&utm_medium=feed)

Most React tutorials fetch data with useEffect + useState. It works, until you need caching, retries, refetching, or a clean way to show loading and error states. Then you're hand-rolling a worse vers

8 min read · [leeonscoding.hashnode.dev](https://leeonscoding.hashnode.dev/fetching-data-in-react-the-right-way-axios-tanstack-query?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/fetching-data-in-react-the-right-way-axios-tanstack-query/6afd08cdf8d7ed05d5452ec0)

### [React Router in Practice: Layouts, Nested Routes and Protected Routes](https://leeonscoding.hashnode.dev/react-router-in-practice-layouts-nested-routes-and-protected-routes?utm_source=hashnode&utm_medium=feed)

Most React Router tutorials stop at "here is how to render a page for a URL". Real apps need more: a shared navbar, a dashboard with its own sidebar, and pages that only logged-in users can see. This

6 min read · [leeonscoding.hashnode.dev](https://leeonscoding.hashnode.dev/react-router-in-practice-layouts-nested-routes-and-protected-routes?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/react-router-in-practice-layouts-nested-routes-and-protected-routes/6afd0457b7f9bf9a18d873ca)

### [Context, useReducer, and Composition: State Management in React Without a Library](https://leeonscoding.hashnode.dev/context-usereducer-and-composition-state-management-in-react-without-a-library?utm_source=hashnode&utm_medium=feed)

You don't need Redux for most apps. React ships with three tools that, combined well, cover the majority of state-management needs: useReducer for predictable updates, Context for sharing state withou

7 min read · [leeonscoding.hashnode.dev](https://leeonscoding.hashnode.dev/context-usereducer-and-composition-state-management-in-react-without-a-library?utm_source=hashnode&utm_medium=feed)

[1d ago](https://hashnode.com/posts/context-usereducer-and-composition-state-management-in-react-without-a-library/6afd034819b64ffe9dd2943e)
