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