Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react pass object as props

Use the "spread" operator {... }

Usage: <MyJsx {...commonProps} />
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #react #pass #object #props
ADD COMMENT
Topic
Name
7+5 =