Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react conditional style render

style={{backgroundColor: $post.type === "team_member" ? 'green': 'not_a_team_member'}}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #conditional #style #render
ADD COMMENT
Topic
Name
3+8 =