Blog

Page 316 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Dynamic tag name in React JSX
javascriptnode.js

Dynamic tag name in React JSX

Published on September 2, 2023

# 🌟 Dynamic Tag Name in React JSX: A Guide Are you tired of hardcoding your React component's HTML heading tags? 😫 Do you want to dynamically set the heading level based on a prop? šŸ—ļø Look no further, my friend! In this blog post, I'll show you how to

Cover Image for How to use radio buttons in ReactJS?
html

How to use radio buttons in ReactJS?

Published on September 2, 2023

# How to Use Radio Buttons in ReactJS: A Complete Guide Are you new to ReactJS and wondering how to use radio buttons in your project? Don't worry, we've got you covered! In this tutorial, we'll walk you through the process step by step and provide easy s

Cover Image for "TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined"

"TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined"

Published on September 2, 2023

šŸ“ **Tech Blog: Troubleshooting the "TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined" Error in React** šŸ‘‹ Hey there, tech enthusiasts! šŸ‘Øā€šŸ’» Welcome back to my tech blog, where we decode complex error

Cover Image for React Context vs React Redux, when should I use each one?
javascript

React Context vs React Redux, when should I use each one?

Published on September 2, 2023

šŸ“¢ Hey there, tech enthusiasts! šŸ–„ļø Are you all set to dive headfirst into the intriguing world of React Context and React Redux? šŸš€ Today, we're going to unravel the mystery behind when to use each, and hopefully clear those nagging doubts in your mind. S

Cover Image for Is it safe to store a JWT in localStorage with ReactJS?
javascriptlocal-storagenode.js

Is it safe to store a JWT in localStorage with ReactJS?

Published on September 2, 2023

# **Is it safe to store a JWT in localStorage with ReactJS?** šŸ¤”šŸ”šŸ’» If you're developing a single-page application using ReactJS and you need to store a JSON Web Token (JWT), you might be wondering if it's safe to store it in the localStorage. Let's di

Cover Image for React proptype array with shape
arrays

React proptype array with shape

Published on September 2, 2023

šŸ“**Title: Ensuring a Specific Shape for React PropTypes Arrays** šŸ‘‹ Hey there, tech enthusiasts! šŸ˜„ Are you wondering if there's an easy and built-in way to use React PropTypes to ensure that an array of objects passed to a component matches a specific s

Cover Image for How to access a child"s state in React
javascript

How to access a child"s state in React

Published on September 2, 2023

# How to Access a Child's State in React: A Complete Guide Have you ever found yourself in a situation where you needed to access the state of a child component in React? šŸ¤” You're not alone! In this blog post, we'll explore how to tackle this common issu

Cover Image for ESLint Parsing error: Unexpected token
javascript

ESLint Parsing error: Unexpected token

Published on September 2, 2023

šŸ“ **ESLint Parsing error: Unexpected token** Hey there! If you're getting an unexpected token error while using ESLint, don't worry, I've got you covered! šŸ‘ The error message you're seeing, "Parsing error: Unexpected token," usually occurs when the cod

Cover Image for Reactjs setState() with a dynamic key name?
javascript

Reactjs setState() with a dynamic key name?

Published on September 2, 2023

# ReactJS setState() with a Dynamic Key Name: A Handy Guide šŸ’»šŸ”‘ Are you struggling with setting the state in ReactJS using a dynamic key name? Look no further! We've got you covered. šŸ˜Ž ## The Problem 😰 One frustrated developer asked this question on

Blog | Matheus Mello