Press ESC to close

Irakli Tchigladze
1 Min Read

scrollIntoView() is a JavaScript method that scrolls to element it is called on. Since React is a JavaScript library, we can use it to scroll to element in React. Scroll to element on click Here’s an example where we scroll to element when user clicks…

UX
Irakli Tchigladze
2 Min Read

We’re going to use react-router to redirect in React. Redirect to another page with useNavigate() hook react-router version 6 provides a useNavigate() hook, which returns a function that navigates to the path provided as a string argument.. Here’s an example: There are multiple ways to…

Irakli Tchigladze
1 Min Read

Going to the previous page is essential part of browsing experience. In this article, we will explore how to implement a ‘go back’ feature in React. How ‘go back’ feature works Browsers keep track all URLs you visit when browsing a website. This information is…

Irakli Tchigladze
4 Min Read

Nowadays many web applications are overloaded with content. Sometimes you need to highlight certain elements or components by setting scroll position in React. In this article, we’ll show you how to set scroll position when component mounts or when users click a button. Set scroll…

UX