---
title: "Victory Asokomeh (@Soks) | Hashnode"
description: "Frontend Developer. Read the latest articles by Victory Asokomeh on Hashnode."
url: "https://hashnode.com/@Soks"
---

@Soks

# Victory Asokomeh

@Soks · Nigeria · Joined November 2019

Frontend Developer

## Comments

[useLayoutEffect Similar to useEffect but fires synchronously after all DOM mutations(react docs). It can be used to make changes before the browser has a chance to paint. I can think of two instances where it can be applied; Dynamically setting document title useLayoutEffect(() => { document.title = "Profile"; }, \[\]); The page title is set before the browser has a chance to paint. Verifying user token when your root component mounts (app) const { handleLogout } = useAuth(); useLayoutEffect(() => { checkTokenValidity(handleLogout); }, \[handleLogout\]);](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895/comment/5fc7948e6819c54efdf2deb1)

Comment · Article · Dec 2, 2020 · [Common React Hooks cheatsheet - React, Redux, Router and Ionic friendly](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895)
