Blog

Page 768 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for react-router - pass props to handler component
javascriptproperties

react-router - pass props to handler component

Published on September 2, 2023

# How to Pass Props to a Handler Component in React Router Are you stuck trying to pass props to a handler component in React Router? šŸ¤” Don't worry, you're not alone! Many developers struggle with this common issue. In this blog post, we will explore dif

Cover Image for How to compare oldValues and newValues on React Hooks useEffect?

How to compare oldValues and newValues on React Hooks useEffect?

Published on September 2, 2023

## How to Compare oldValues and newValues on React Hooks useEffect? šŸ¤” Have you ever wondered if there's a way to compare `oldValues` and `newValues` in `useEffect` on React Hooks, just like in the good old `componentDidUpdate` days? šŸ‘‰ Well, you're in

Cover Image for How to use `setState` callback on react hooks

How to use `setState` callback on react hooks

Published on September 2, 2023

# How to Use `setState` Callback on React Hooks šŸ’”šŸ”—šŸŽ£ React hooks have revolutionized the way we manage state in functional components. The introduction of the `useState` hook allows us to easily set and update our component's state. However, if you're c

Cover Image for What does the error "JSX element type "..." does not have any construct or call signatures" mean?

What does the error "JSX element type "..." does not have any construct or call signatures" mean?

Published on September 2, 2023

# Understanding the "JSX element type '...' does not have any construct or call signatures" Error Hey there, tech enthusiasts! šŸ‘‹ Today, we're diving into one of the cryptic errors you might encounter while working with JSX in React. šŸ¤” The error message

Cover Image for Programmatically navigate using react router V4
ecmascript-6

Programmatically navigate using react router V4

Published on September 2, 2023

# Programmatically navigate using React Router V4: A Complete Guide šŸ”— React Router is a popular routing library for React applications, providing a way to navigate between different pages or URL endpoints. In version 4 of React Router, there are some cha

Cover Image for When to use ES6 class based React components vs. functional ES6 React components?
ecmascript-6javascript

When to use ES6 class based React components vs. functional ES6 React components?

Published on September 2, 2023

# When to use ES6 class based React components vs. functional ES6 React components? <p>React offers two main paradigms for creating components: ES6 class based components and functional ES6 components. Understanding when to use each one is key to writing

Cover Image for How to pass params with history.push/Link/Redirect in react-router v4?

How to pass params with history.push/Link/Redirect in react-router v4?

Published on September 2, 2023

## šŸš€ How to Pass Params with history.push/Link/Redirect in React-Router v4? Are you struggling to pass parameters with `history.push`, `Link`, or `Redirect` in React-Router v4? Don't worry, you're not alone! Many developers face this issue when working

Cover Image for How to add fonts to create-react-app based projects?
css

How to add fonts to create-react-app based projects?

Published on September 2, 2023

# How to Add Fonts to create-react-app Based Projects? šŸ“ *Intro*: So, you're working on a project using create-react-app, and you want to add some custom fonts without ejecting? Don't worry, I got you covered! šŸŽ‰ šŸ¤” *The Problem*: The issue is, when imp

Cover Image for where is create-react-app webpack config and files?
ecmascript-6javascript

where is create-react-app webpack config and files?

Published on September 2, 2023

šŸ“ **Hey there React enthusiasts!** 🌟 Are you excited about creating a ReactJS project with the awesome `create-react-app` package? šŸš€ That's fantastic! šŸ‘ But hold on a second, have you been searching high and low for the elusive webpack configuration f

Blog | Matheus Mello