question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow custom (nonstandard) attributes.

See original GitHub issue

Various 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:closed
  • Created 10 years ago
  • Reactions:23
  • Comments:131 (46 by maintainers)

github_iconTop GitHub Comments

16reactions
gaearoncommented, Dec 9, 2016

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!

10reactions
gaearoncommented, Feb 19, 2016

@tnrich

For not yet supported attributes, you can put ref on the element and call setAttribute() manually.

For example:

return <div ref={node => node && node.setAttribute('inert', '')} />
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found