Blog

Page 280 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Can I dispatch an action in reducer?

Can I dispatch an action in reducer?

Published on September 2, 2023

πŸ”₯🎢 **Dispatching Actions in Reducer: A Complete Guide** 🎢πŸ”₯ Do you have a burning desire to dispatch an action within a reducer? Need to update your progress bar dynamically while your audio element is playing? Well, you're in luck because we're about

Cover Image for How to pass in a react component into another react component to transclude the first component"s content?
javascript

How to pass in a react component into another react component to transclude the first component"s content?

Published on September 2, 2023

πŸ˜ŽπŸ“πŸ“’ Blog Post: How to Pass a React Component into Another React Component to Transclude Content πŸš€πŸŽ‰ Are you trying to level up your React game and wondering how to pass one component into another in order to transclude content? Look no further! In thi

Cover Image for React: why child component doesn"t update when prop changes
htmljavascript

React: why child component doesn"t update when prop changes

Published on September 2, 2023

# React: Why child component doesn't update when prop changes? πŸ€” You're coding away in React, feeling pretty confident, when suddenly you hit a roadblock. You have a parent component, let's call it `Container`, and it has a child component called `Child`

Cover Image for How to delete an item from state array?
arraysjavascript

How to delete an item from state array?

Published on September 2, 2023

## How to Delete an Item from a State Array in React: A Beginner's Guide Have you ever encountered the daunting task of deleting an item from a state array in React? Fear not! In this guide, we will walk you through the common issues and provide you with

Cover Image for React.Component vs React.PureComponent

React.Component vs React.PureComponent

Published on September 2, 2023

# React.Component vs React.PureComponent: Which one should you choose? Have you ever wondered which React component class to use when creating your components? πŸ€” Should you go for the regular old `React.Component` or the shiny new `React.PureComponent`?

Cover Image for I forgot the password I entered during PostgreSQL installation

I forgot the password I entered during PostgreSQL installation

Published on September 2, 2023

# How to Reset the PostgreSQL Password πŸ˜…πŸ’‘πŸ’» So, you're new to PostgreSQL and you forgot the password you entered during installation? Don't worry, it happens to the best of us πŸ™ˆ! In this blog post, we'll walk you through the process of resetting your P

Cover Image for Why is immutability so important (or needed) in JavaScript?
javascript

Why is immutability so important (or needed) in JavaScript?

Published on September 2, 2023

# The Importance of Immutability in JavaScript πŸš€ Are you currently working with React JS or React Native frameworks? If so, you've probably come across the term "immutability" or even stumbled upon the Immutable-JS library. But have you ever wondered why

Cover Image for create react app not picking up .env files?

create react app not picking up .env files?

Published on September 2, 2023

πŸ“’ Hey there, React devs! Having trouble with Create React App not picking up your .env files? πŸ˜• Don't worry, I've got your back! Let's dive in and solve this puzzle together! 🀝 The first thing we need to understand is the default behavior of Create Rea

Cover Image for How to update React Context from inside a child component?
javascript

How to update React Context from inside a child component?

Published on September 2, 2023

# How to update React Context from inside a child component? πŸ’»πŸ”„ Are you having trouble updating the React Context from inside a child component? Don't worry, we've got you covered! 🀝 In this guide, we'll walk you through a simple and effective solution

Cover Image for Axios - DELETE Request With Request Body and Headers?
httpjavascript

Axios - DELETE Request With Request Body and Headers?

Published on September 2, 2023

# Axios - DELETE Request With Request Body and Headers? πŸ‘‹ Hey there! Are you programming in ReactJS and trying to send a DELETE request to your server using Axios? πŸ˜• If you're struggling with adding headers and a request body to your DELETE request, yo