Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react using object as prop

const commonProps = {myProp1: 'prop1',myProp2: 'prop2'};
<MyJsx commonProps={commonProps} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #object #prop
ADD COMMENT
Topic
Name
2+3 =