Tagged: React Hooks

Nested routes using React Router v6 - Clue Mediator

Nested routes using React Router v6

Today we’ll show you how to implement nested routes using React Router v6. We already written an article to explain how to add nested routes with React Router version 5....

URL Parameters with React Router v6 - Clue Mediator

URL Parameters with React Router v6

In this article, we’ll show you how to set URL parameters with React Router v6. In the previous article, we have explained how to add URL parameters in React Router...

Sticky element on a scroll in React - Clue Mediator

Sticky element on a scroll in React

If you want to add a sticky div or paragraph on page scroll then today we will show you how to add a sticky element on a scroll in React....

How to use async functions in useEffect - Clue Mediator

How to use async functions in useEffect

The useEffect is the place where we mostly write code to get data. Data fetching is an asynchronous function so we can not use async/await in straightforward ways. In this...