---
title: "#reactscan articles | Hashnode"
description: "Explore 10 articles tagged #reactscan on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/reactscan"
---

Tag

# #reactscan

10 posts · 0 followers

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 14, 2025](https://hashnode.com/posts/weakmap-in-react-scan-vs-next-mdx-source-code/67d3c288f6184722e07d7583)

### [WeakMap in react-scan vs next-mdx source code.](https://thinkthroo.com/blog/weakmap-in-react-scan-vs-next-mdx-source-code?utm_source=hashnode&utm_medium=feed)

In this article, we will review the below code snippet picked from react-scan source code. const cache = new WeakMap<object, string>(); export function fastSerialize(value: unknown, depth = 0): string { ... if (value === null) return 'null'; ...

2 min read · [thinkthroo.com](https://thinkthroo.com/blog/weakmap-in-react-scan-vs-next-mdx-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 13, 2025](https://hashnode.com/posts/weakset-in-react-scan-source-code/67d26c7a6e67a5045ec60714)

### [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...

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

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 12, 2025](https://hashnode.com/posts/starttimingtracking-in-react-scan-source-code/67d121ab3701ceff8048a544)

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

In this article, we review the below code snippet picked from event-tracking.ts export const startTimingTracking = () => { const unSubPerformance = setupPerformancePublisher(); const unSubDirtyTaskTracking = startDirtyTaskTracking(); const unSu...

3 min read · [thinkthroo.com](https://thinkthroo.com/blog/starttimingtracking-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 11, 2025](https://hashnode.com/posts/createhighlightcanvas-function-in-react-scan-source-code/67cfcd40fe1930cd3f45b06e)

### [\`createHighlightCanvas\` function in react-scan source code.](https://thinkthroo.com/blog/createhighlightcanvas-function-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

In this article, we will review the below code snippet from react-scan source code. export const createHighlightCanvas = (root: HTMLElement) => { highlightCanvas = document.createElement('canvas'); highlightCtx = highlightCanvas.getContext('2d', ...

3 min read · [thinkthroo.com](https://thinkthroo.com/blog/createhighlightcanvas-function-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 10, 2025](https://hashnode.com/posts/attachshadow-method-in-react-scan-source-code/67ce84552bebdafd2e88bfdd)

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

In this article, we will review the below code snippet from react-scan source code. const initRootContainer = (): RootContainer => { if (rootContainer && shadowRoot) { return { rootContainer, shadowRoot }; } rootContainer = document.create...

2 min read · [thinkthroo.com](https://thinkthroo.com/blog/attachshadow-method-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Mar 3, 2025](https://hashnode.com/posts/build-an-offscreen-dom-tree-using-this-method/67c53aea362c6a008171db30)

### [Build an offscreen DOM tree using this method.](https://thinkthroo.com/blog/build-an-offscreen-dom-tree-using-this-method?utm_source=hashnode&utm_medium=feed)

I found the below code snippet in packages/scan/core/index.ts in react-scan source code. const fragment = document.createDocumentFragment(); In this article, you will learn What is DocumentFragment? How is DocumentFragment used in react-scan? cre...

2 min read · [thinkthroo.com](https://thinkthroo.com/blog/build-an-offscreen-dom-tree-using-this-method?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Feb 27, 2025](https://hashnode.com/posts/preact-usage-in-react-scan-source-code/67bff28752dd71263ad16c44)

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

In this article, we analyze how Preact is used in react-scan source code. What is Preact? Preact is a fast 3kB alternative to React with the same modern API. There is a Preact tutorial available. Preact’s Goals Preact aims to deliver on a few key goa...

2 min read · [thinkthroo.com](https://thinkthroo.com/blog/preact-usage-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Feb 26, 2025](https://hashnode.com/posts/heres-how-the-options-are-validated-in-react-scan-source-code/67be9af45fde4252e8a3afe5)

### [Here’s how the options are validated in react-scan source code.](https://thinkthroo.com/blog/heres-how-the-options-are-validated-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

In this article, we analyze how the options you pass into scan function are validated. Options In the example provided in react-scan repository, you will find this below code in aidenybai/react-scan/examples/sierpinski/src/index.jsx. ... import { sc...

3 min read · [thinkthroo.com](https://thinkthroo.com/blog/heres-how-the-options-are-validated-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Feb 25, 2025](https://hashnode.com/posts/domparser-usage-in-react-scan-source-code/67bd5542df60d6f3211f23f8)

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

I found DOMParser in react-scan source code as shown below. const iconSprite = new DOMParser().parseFromString( ICONS, 'image/svg+xml', ).documentElement; This picked from line 54 in packages/scan/src/core/index.ts. In this article, we und...

2 min read · [thinkthroo.com](https://thinkthroo.com/blog/domparser-usage-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

[Ramu Narasinga](https://hashnode.com/@ramunarasinga) · [Feb 24, 2025](https://hashnode.com/posts/bippy-a-toolkit-to-hack-into-react-internals/67bc16e0c072eba62ac1a059)

### [Bippy, a toolkit to hack into react internals.](https://thinkthroo.com/blog/bippy-a-toolkit-to-hack-into-react-internals?utm_source=hashnode&utm_medium=feed)

I found an import from “bippy” in react-scan source code. I wanted to find out what this is about. In this article, you will understand the below concepts What is react-scan? What is Bippy? How did I find this package? What is react-scan? react-...

4 min read · [thinkthroo.com](https://thinkthroo.com/blog/bippy-a-toolkit-to-hack-into-react-internals?utm_source=hashnode&utm_medium=feed)
