Search Results

Showing results for "javascript"

Latest Articles

Cover Image for How to get rid of underline for Link component of React Router?
javascript

How to get rid of underline for Link component of React Router?

Published on September 2, 2023

āœØšŸ”— How to get rid of underline for Link component of React Router? šŸ”—āœØ Are you tired of that pesky blue underline ruining the aesthetic of your React Router Link components? Fear not, because we've got you covered! In this guide, we'll walk through commo

Cover Image for React-Router External link
javascriptredirect

React-Router External link

Published on September 2, 2023

šŸ“šŸŒāœ… React-Router External Link: Redirecting to External Resources Made Easy! šŸš€ Are you using React Router to handle routes in your React app? Do you find yourself wondering if there's a way to redirect users to an external resource? Well, good news! Yo

Cover Image for <div> cannot appear as a descendant of <p>
javascript

<div> cannot appear as a descendant of <p>

Published on September 2, 2023

šŸ“ **Blog Post: Understanding the "div cannot appear as a descendant of p" Warning** Hey there, tech enthusiasts! šŸ‘‹ Today, we're going to dive into a common issue that many developers face - the dreaded `div cannot appear as a descendant of p` warning. ļæ½

Cover Image for Cannot update a component while rendering a different component warning
javascript

Cannot update a component while rendering a different component warning

Published on September 2, 2023

# āš ļø Cannot update a component while rendering a different component warning So you're getting the dreaded "Cannot update a component while rendering a different component" warning in your React application. Don't panic! This warning typically occurs when

Cover Image for React.js: Set innerHTML vs dangerouslySetInnerHTML
htmljavascript

React.js: Set innerHTML vs dangerouslySetInnerHTML

Published on September 2, 2023

šŸ“ **React.js: Set innerHTML vs dangerouslySetInnerHTML** If you're a React.js developer, you might have come across the question of whether to use `innerHTML` or `dangerouslySetInnerHTML` when setting the content of an element. šŸ¤” In this blog post, we'l

Cover Image for React Hooks useState() with Object
javascript

React Hooks useState() with Object

Published on September 2, 2023

# Updating Nested State in React Hooks: A Complete Guide So, you're working with React Hooks and want to update a nested object state using the `useState()` hook. šŸ¤” You've come to the right place! In this blog post, we'll tackle the common issues faced w

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 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

Blog | Matheus Mello