---
title: "Discussion on \"A Look At React Hooks: useSyncExternalStore\" | Hashnode"
description: "Discussion on \"A Look At React Hooks: useSyncExternalStore\". An awesome library Hook to integrate non-React state management in your apps!"
url: "https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98"
---

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

Discussion

# [A Look At React Hooks: useSyncExternalStore](https://blog.lo-victoria.com/a-look-at-react-hooks-usesyncexternalstore?utm_source=hashnode&utm_medium=feed)

An awesome library Hook to integrate non-React state management in your apps!

Jun 2, 2023 · 5 min read · blog.lo-victoria.com  
Updated Feb 6, 2024  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#localstorage](https://hashnode.com/tag/localstorage)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Victoria Lo](https://hashnode.com/@victoria)

@victoria · Singapore

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

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses 4

Markdown supported · ⌘↵ to post

[Praveen V](https://hashnode.com/@praveen20)

[Dec 26, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/658ad1ce76c8e7cda14505bb)

[devtohash.hashnode.dev/javascript-vs-typescript-c…](https://devtohash.hashnode.dev/javascript-vs-typescript-comparison-analysis)

[Praveen V](https://hashnode.com/@praveen20)

[Dec 26, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/658a6c97e1f02b93559bb198)

[devtohash.hashnode.dev/javascript-vs-typescript-c…](https://devtohash.hashnode.dev/javascript-vs-typescript-comparison-analysis)

[Valerii Sedin](https://hashnode.com/@Val78)

[Dec 16, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/657d2edd87df3eed7ba92682)

Thank you for the great article with a good example, really helped me understand the hook. However I think there is a small error in your code snippet: getSnapshot function should return data, but in your code here it does not.

[Victoria Lo](https://hashnode.com/@victoria)

[Dec 17, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/657d2edd87df3eed7ba92682#reply-657f0d3103e6d4749ad94203)

Thanks for pointing that out [Valerii Sedin](https://hashnode.com/@Val78)! updated :)

[Bao Huynh](https://hashnode.com/@bhuynhdev)

[Dec 13, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/65797b248c20139b60a83528)

Would love to know why does `useEffect` might cause "might cause over-returning Hooks and unwanted re-rendering of components" whereas `useSyncExternalStore` does not. I couldn't find this information in the doc links you listed

[Victoria Lo](https://hashnode.com/@victoria)

[Dec 17, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/65797b248c20139b60a83528#reply-657f0d17ff27ad10a97882da)

Thanks for the comment [Bao Huynh](https://hashnode.com/@bhuynhdev)! Sorry, maybe I was not clear. I do not mean useSyncExternalStore will not cause over re-rendering at all. However, it provides a way to synchronize your component with an external store in a more controlled manner, which may make your code less error-prone than manually syncing data with useEffect.

[David Hamilton](https://hashnode.com/@snailinjure)

[Oct 20, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/653252c89e28a744a3598e54)

Your post gave me a lot of useful information. This is a topic that interests me as well, so I hope you will read the [connections](https://connectionsgame.io/) article.

[Limkre Breisa](https://hashnode.com/@singeinspector)

[Jun 29, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/649d392c2f8474a27dd5cf93)

Outside of React, third-party state management libraries hold state. [doodle jump](https://doodlegames.io/)

[Bryan King Pecho](https://hashnode.com/@bkpecho)

[Jun 3, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/647a95361c128bf71962a89b)

Great article! 👏 The useSyncExternalStore Hook seems like a powerful tool for integrating non-React state management in our apps.

[Victoria Lo](https://hashnode.com/@victoria)

[Jun 3, 2023](https://hashnode.com/posts/a-look-at-react-hooks-usesyncexternalstore/6479d9e7eafd38ddc2c92b98/comment/647a95361c128bf71962a89b#reply-647a9f8ccc9d6bf749df5b03)

Yes it's a great Hook but often overlooked! Just wanna give it its spotlight in this article~ Thanks for reading [Bryan King Pecho](https://hashnode.com/@bkpecho) :)
