This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
How can I build an Angular like Attribute Directive using a custom React Hook? #556
Labels
code-help
StackOverflow-like questions
I was listening to the React Podcast about Hooks and this idea came up for a brief second and got me thinking, However, I am not well versed enough in React to know how to approach this idea.
The highlight feature that Angular uses as their demo for Attribute Directives would be a simple idea to try and implement: https://angular.io/guide/attribute-directives#attribute-directives
Finally are there any cons to introducing attribute directives to React? Is there a reason that this is not something we do often? Am I missing something in React that makes this easy but it's just called something else other than directives?
The text was updated successfully, but these errors were encountered: