---
title: "Discussion on \"Common React Hooks cheatsheet - React, Redux, Router and Ionic friendly\" | Hashnode"
description: "Discussion on \"Common React Hooks cheatsheet - React, Redux, Router and Ionic friendly\". So who is this for?\n\nFrontend developers writing functional React components\nIonic React mobile developers\n\nReact Hooks\nHooks provide React developers the ability to write functional components while accessing Reacts core features. To put it plainly:..."
url: "https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Common React Hooks cheatsheet - React, Redux, Router and Ionic friendly](https://blog.chinaza.dev/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly?utm_source=hashnode&utm_medium=feed)

So who is this for? Frontend developers writing functional React components Ionic React mobile developers React Hooks Hooks provide React developers the ability to write functional components while accessing Reacts core features. To put it plainly:...

Dec 1, 2020 · 4 min read · blog.chinaza.dev  
Updated Jan 21, 2022  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#redux](https://hashnode.com/tag/redux)
-   [#react-router](https://hashnode.com/tag/react-router)
-   [#react-router-cinhn7r71003oxe534326vsqz](https://hashnode.com/tag/react-router-cinhn7r71003oxe534326vsqz)
-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)

## Written by

[Chinaza Egbo](https://hashnode.com/@chinaza)

@chinaza · London, UK

  
[View profile](https://hashnode.com/@chinaza)

Software Engineer, Yelp | Building zhap.cloud

I seek out simple and scalable solutions to various challenges with tech

## Responses 4

Markdown supported · ⌘↵ to post

[Luísa Ribeiro Bezerra](https://hashnode.com/@luisarbezerra)

[Dec 2, 2020](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895/comment/5fc809694a717053a2f9e476)

Great article! :D

[Usman Sabuwala](https://hashnode.com/@usmanwrites)

[Dec 2, 2020](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895/comment/5fc7a4c3ff636d4f4984cb80)

A very good explanation about hooks! Keep it up!

[Victory Asokomeh](https://hashnode.com/@Soks)

[Dec 2, 2020](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895/comment/5fc7948e6819c54efdf2deb1)

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\]);

[Hope Philip](https://hashnode.com/@frozenchicken)

[Dec 2, 2020](https://hashnode.com/posts/common-react-hooks-cheatsheet-react-redux-router-and-ionic-friendly/5fc6d092a0a3250b19a58895/comment/5fc78ea46819c54efdf2de3a)

This is lovely, I like how you explain the useEffect Hook
