Docker Compose Documentation
Learn how to define and manage services in Docker Compose.
Learn how to define and manage services in Docker Compose.
Control the CPU and memory usage of Docker containers with CLI and Docker Compose configurations.
Understanding Docker networking and inter-container communication.
A brief tutorial on github recipe and git command
A tutorial on creating content with Markdown in Hugo.
Learn about reference types in JavaScript, including objects and arrays, and how methods like filter() and find() handle references.
A complete reference guide for JavaScript including data types, functions, DOM manipulation, and modern ES6+ features
A practical guide to navigating and managing files in Linux.
A detailed overview of my learning journey and future plans.
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. ...