Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit 9eda9e2

Browse files
committed
docs: add lazy mounting section
1 parent 84cf087 commit 9eda9e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,16 @@ You can nest the components like so:
335335
</Tippy>
336336
```
337337

338+
## Lazy mounting
339+
340+
By default, Tippy mounts your `content` or `render` elements into a container
341+
element once created, even if the tippy isn't mounted on the DOM. In most cases,
342+
this is fine, but in performance-sensitive scenarios or cases where mounting the
343+
component should fire effects only when the tippy mounted, you can lazify the
344+
component.
345+
346+
[View the following gists to optimize your `<Tippy />` if needed.](https://gist.github.com/atomiks/520f4b0c7b537202a23a3059d4eec908)
347+
338348
## 📚 useSingleton
339349

340350
A Hook for the

0 commit comments

Comments
 (0)