---
title: "Discussion on \"Build an offscreen DOM tree using this method.\" | Hashnode"
description: "Discussion on \"Build an offscreen DOM tree using this method.\". I found the below code snippet in packages/scan/core/index.ts in react-scan source code.\nconst fragment = document.createDocumentFragment();\n\nIn this article, you will learn\n\nWhat is DocumentFragment?\n\nHow is DocumentFragment used in react-scan?\n\ncre..."
url: "https://hashnode.com/posts/build-an-offscreen-dom-tree-using-this-method/67c53aea362c6a008171db30"
---

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

Discussion

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

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

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

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