Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react createelement data attribute

React.createElement('div', {className: 'test', 'data-test': 'some value'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #createelement #data #attribute
ADD COMMENT
Topic
Name
3+3 =