Allow custom (nonstandard) attributes.
See original GitHub issueVarious frameworks uses custom attributes. React could allow to extend default data- and aria- prefixes. Something like this:
React.registerCustomAttributePrefix('e-');
React.registerCustomAttributePrefix('ng-');
Issue Analytics
- State:
- Created 10 years ago
- Reactions:23
- Comments:131 (46 by maintainers)
Top Results From Across the Web
Non standard custom attributes in ReactJS?
I need image and etc to be set on the element with setAttribute , and I need react to use its smarts to...
Read more >Using Custom and Nonstandard Attributes from Azure ...
Configure Application to Allow Mapped Claims. Now, let's hop over to the Azure portal and open up the Sitecore Identity application in the...
Read more >How to set up office 365 custom attributes & use them in ...
First name, last name, address, organization-related and contact information – it can all be set up in Office 365. While standard AD fields...
Read more >HTML5 Custom Attributes And How To Access Them Using ...
HTML5 custom attributes (or data attributes ) allow you to store ... to do so. such as non-standard attributes, or extra properties on...
Read more >Custom attributes vs Additional Azure AD attributes
The Custom Attributes and Additional Azure Attributes features are useful for adding additional, non-standard user information to your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It would indeed be great if all issues could be taken into account immediately. However this is just not how software is developed. At the time, there were always more pressing issues. We try to do our best to prioritize work on what is likely to help most people, and while this particular request has a lot of support, so do many other things we are and have been working on.
I appreciate you sharing your concerns but let’s keep this thread on topic. Yes, it’s a change we wanted to make for a while, and yes, it took us a while to get to add the warning. If you open any popular issue, you will find comments saying that particular issue is the most urgent one.
I’m sorry this particular change prevented you from using React but I hope that you found an alternative that better suits your needs in the meantime. I also hope you’ll reconsider after we make this change.
Cheers!
@tnrich
For not yet supported attributes, you can put
ref
on the element and callsetAttribute()
manually.For example: