Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSuggestion: global custom attributes #19910
Comments
|
That is something you can already do: const glyphIcon = (val) => ({ className: "glyphicon glyphicon-" + val + " icon" });
<div {...glyphIcon("ok")} >...</div> |
Hi,
I would like to suggest this new feature that may be useful: a custom global attribute as a DRY and KISS feature for sharing some repetitive coding or verbose styling. It is a bit familiar to Angular directive concept, but it is more functional and react-like.