There are different reasons behind it, but I wonder how to simply add custom attributes to an element in JSX?
You can use the "is" attribute to disable the React attribute whitelist for an element.
See my anwser here: Stackoverflow