---
title: "Discussion on \"WeakSet() in react-scan source code.\" | Hashnode"
description: "Discussion on \"WeakSet() in react-scan source code.\". In this article, we review a code snippet from react-scan source code.\nexport const ignoredProps = new WeakSet<\n  Exclude<ReactNode, undefined | null | string | number | boolean | bigint>\n>();\n\nexport const ignoreScan = (node: ReactNode) => {\n  if (n..."
url: "https://hashnode.com/posts/weakset-in-react-scan-source-code/67d26c7a6e67a5045ec60714"
---

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

Discussion

# [WeakSet() in react-scan source code.](https://thinkthroo.com/blog/weakset-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

In this article, we review a code snippet from react-scan source code. export const ignoredProps = new WeakSet< Exclude<ReactNode, undefined | null | string | number | boolean | bigint> >(); export const ignoreScan = (node: ReactNode) => { if (n...

Mar 13, 2025 · 2 min read · thinkthroo.com  
Updated Apr 3, 2025  
Read the article

-   [#weakset](https://hashnode.com/tag/weakset)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reactscan](https://hashnode.com/tag/reactscan)

## Written by

[Ramu Narasinga](https://hashnode.com/@ramunarasinga)

@ramunarasinga · India

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

I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
