Answers for "react contitional styling"

3

conditional style prop react

style={{ textDecoration: todo.completed && "line-through" }}

style={{ textDecoration: todo.completed ? "line-through" : 'none' }}
Posted by: Guest on September-10-2020
0

conditional style react

<ImageBackground source={Images.bg} style={ (navHeight==0) ? styles.bg1 : styles.bg2}>
Posted by: Guest on August-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language