Docker Compose Documentation

Learn how to define and manage services in Docker Compose.

October 18, 2024 · 3 min · 619 words · Nirajan Khatiwada

Docker CPU and Memory Limits

Control the CPU and memory usage of Docker containers with CLI and Docker Compose configurations.

October 18, 2024 · 2 min · 320 words · Nirajan Khatiwada

Docker Networking and Port Access

Understanding Docker networking and inter-container communication.

October 18, 2024 · 2 min · 297 words · Nirajan Khatiwada

Git Commands and Configuration Guide

A brief tutorial on github recipe and git command

October 18, 2024 · 3 min · 549 words · Nirajan Khatiwada

How to Create Content for Hugo

A tutorial on creating content with Markdown in Hugo.

October 18, 2024 · 3 min · 573 words · Nirajan Khatiwada

JavaScript Reference Behavior: Objects and Arrays

Learn about reference types in JavaScript, including objects and arrays, and how methods like filter() and find() handle references.

October 18, 2024 · 7 min · 1325 words · Nirajan Khatiwada

JavaScript Reference Guide

A complete reference guide for JavaScript including data types, functions, DOM manipulation, and modern ES6+ features

October 18, 2024 · 18 min · 3661 words · Nirajan Khatiwada

Linux Commands and Directories Guide

A practical guide to navigating and managing files in Linux.

October 18, 2024 · 4 min · 837 words · Nirajan Khatiwada

Learning Journey

A detailed overview of my learning journey and future plans.

October 14, 2024 · 1 min · 120 words · Nirajan Khatiwada

51. Handling Asynchronous Data in redux Since the reducer function should be a pure function, it should not have any side effects. This means that we cannot make any API calls or perform any asynchronous operations inside the reducer function. To handle this, we can use Putting the asynchronous logic inside the component using useEffect hook. Here we dispatch when the component mounts and fetch the data from the API. Inside the action creator 51.1 Using useEffect hook In here we use useEffect to fetch the data from the API and dispatch the action to the reducer.Such that reducer updates the state. ...

6 min · 1197 words · Nirajan Khatiwada