Skip to content

Commit eb76ab2

Browse files
ezhloboForbesLindesay
authored andcommitted
Add example of using ternary operator as attribute value (#54)
1 parent 1388ae8 commit eb76ab2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const Component = props => pug` //- const Component = props => (
100100
...two //- {...two}
101101
onClick=() => alert('Hello') //- onClick={() => alert('Hello')}
102102
text='number ' + 10 //- text={'number ' + 10}
103+
condition=foo === bar ? foo : bar //- condition={foo === bar ? foo : bar}
103104
) //- ></button>
104105
//-
105106
- const variable = format(props.no) //-

0 commit comments

Comments
 (0)