Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
custom attributes don't work
<div id="root">
<!-- This element's contents will be replaced with your component. -->
let myAttr = {'custom-attribute': 'I am missing',
'data-standard-attribute': 'I present'}
let disableFlag = {
disabled: true
<button {...myAttr} {...disableFlag} >Hello</button>,
<script src=""></script>
<script src=""></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment