DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+1 =
Submit