Skip to content

Commit

Permalink
docs: updated readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Nov 19, 2023
1 parent 45dd9d4 commit 5fe8825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,10 @@ for many applications.

```tsx
<div class={['a', true && 'b', false && 'c', 'd']} />
'<div class="a b d"></div>'
// <div class="a b d"></div>

<div class={['class-a class-b', true && 'class-c']} />
'<div class="class-a class-b class-c"></div>'
// <div class="class-a class-b class-c"></div>
```

This behavior is pretty similar and inspired from [clsx](https://github.com/lukeed/clsx),
Expand Down

0 comments on commit 5fe8825

Please sign in to comment.