Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

give a prop only if pass condition

<Child {...(this.props.editable ? {editable: {this.props.editableOpts}} : {})} >
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #give #prop #pass #condition
ADD COMMENT
Topic
Name
1+1 =