create-modify-element - Fix InternalLink props usage

This commit is contained in:
2020-10-28 00:42:35 +05:30
parent 2d2af2e645
commit 1262c17269
+1 -1
View File
@@ -223,7 +223,7 @@ This method is used to create a new empty document fragment.
DocumentFragment can be considered to be a off-screen lightweight `document` object.
It is generally used for batching multiple operations - by doing them in the fragment over time and then rendering the whole content to the visible DOM in one shot .
Because fragment is not rendered, making changes to it doesn't cause any performance impact (no reflow). To **actually "render" the fragment** in the visible document, <InternalLink hash="link-appendChild-documentFragment">use appendChild</InternalLink> or `insertBefore`.
Because fragment is not rendered, making changes to it doesn't cause any performance impact (no reflow). To **actually "render" the fragment** in the visible document, <InternalLink href="#link-appendChild-documentFragment">use appendChild</InternalLink> or `insertBefore`.
```js
let fragment = document.createDocumentFragment()