Files
Devour/devour_data/docs/textcontent.json
T
Tomas Dvorak 898a3c303f update
2026-02-24 10:33:59 +01:00

17 lines
1.4 KiB
JSON

{
"id": "16d93200123350b3456e7d09",
"source": "solid:signals",
"type": "github-document",
"title": "textcontent",
"content": "---\ntitle: textContent\nuse_cases: \u003e-\n text-only content, performance optimization, plain text rendering, avoiding\n html parsing, simple text updates\ntags:\n - text\n - performance\n - content\n - optimization\n - dom\nversion: '1.0'\ndescription: \u003e-\n Optimize text rendering with textContent in SolidJS. Bypass diffing for\n text-only content and improve performance for simple text updates.\n---\n\nThe `textContent` attribute is equivalent to the [`textContent` DOM property](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent).\nThis attribute replaces all existing child nodes of the element with a single text node containing the provided string.\n\nUsing `textContent` can improve performance when the element's children are known to be exclusively text, as it bypasses the generic diffing process.",
"url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/reference/jsx-attributes/textcontent.mdx",
"metadata": {
"path": "src/routes/reference/jsx-attributes/textcontent.mdx",
"repo": "solidjs/solid-docs",
"repo_url": "https://github.com/solidjs/solid-docs.git",
"size": 815,
"source_type": "github"
},
"hash": "52afe9cdffdf256058c49790ee4748f1bd753bd134cd256e880b2d971eba1dd5",
"timestamp": "2026-02-23T11:43:00.189605181+01:00"
}