1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 13:52:46 +02:00

Add custom directive docs

This commit is contained in:
Kamran Ahmed
2022-08-09 23:01:56 +04:00
parent 523e898cb9
commit 834fdda46a

View File

@@ -1 +1,6 @@
# Custom directives
# Custom Directives
So far you may have covered two forms of code reuse in Vue: [components](https://vuejs.org/guide/essentials/component-basics.html) and [composables](https://vuejs.org/guide/reusability/composables.html). Components are the main building blocks, while composables are focused on reusing stateful logic. Custom directives, on the other hand, are mainly intended for reusing logic that involves low-level DOM access on plain elements.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://vuejs.org/guide/reusability/custom-directives.html'>Custom Directives</BadgeLink>