Blog

Page 314 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Typescript: React event types
javascript

Typescript: React event types

Published on September 2, 2023

# React Event Types in Typescript: Solving Common Issues 👨‍💻💻 Are you struggling to find the correct type for React events in Typescript? 🤔 Don't worry, you're not alone! Many developers face this challenge when trying to clean up their code and elimi

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 react-router vs react-router-dom, when to use one or the other?

react-router vs react-router-dom, when to use one or the other?

Published on September 2, 2023

# React-Router vs React-Router-Dom: When to Use One or the Other? 🔄🚦🤷‍♂️ Are you feeling lost in the world of React-Router and React-Router-Dom? 🌍 Don't worry, you're not alone! Many developers struggle to understand when to use one over the other. 🤔

Cover Image for Inline CSS styles in React: how to implement a:hover?

Inline CSS styles in React: how to implement a:hover?

Published on September 2, 2023

🔍 **Inline CSS styles in React: how to implement `:hover`?** If you're a fan of the inline CSS pattern in React, you might have encountered some roadblocks when trying to implement the `:hover` selector. The good news is that there are easy and effective

Cover Image for How to use refs in React with Typescript

How to use refs in React with Typescript

Published on September 2, 2023

📝 **Title: Mastering Refs in React with Typescript** ## Introduction Are you struggling to understand how to use refs in React while also enjoying the benefits of static typing and IntelliSense in Typescript? You're not alone. In this guide, we'll demys

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 Adding an .env file to a React project
environment-variables

Adding an .env file to a React project

Published on September 2, 2023

# Adding an .env file to a React project: A Complete Guide 😎🔑 Have you ever encountered the problem of wanting to hide your API key when committing your React project to GitHub? It can be a tricky situation, but fear not! We are here to guide you throug

Cover Image for Property "value" does not exist on type "Readonly<{}>"

Property "value" does not exist on type "Readonly<{}>"

Published on September 2, 2023

# 😱 The Dreaded Error: "Property 'value' does not exist on type 'Readonly<{}>'" 😱 So you're trying to create a form in React, displaying data based on an API return value. You followed the code from the official React documentation, but alas, an error h

Blog | Matheus Mello