Skip to content

Commit

Permalink
Make component example more compelling
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 27, 2023
1 parent 0eba827 commit edca096
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,17 @@ defmodule Phoenix.Component do
```heex
<.unordered_list :let={fruit} entries={~w(apples bananas cherries)}>
I like <%= fruit %>!
I like <b><%= fruit %></b>!
</.unordered_list>
```
Rendering the following HTML:
```html
<ul>
<li>I like apples!</li>
<li>I like bananas!</li>
<li>I like cherries!</li>
<li>I like <b>apples</b>!</li>
<li>I like <b>bananas</b>!</li>
<li>I like <b>cherries</b>!</li>
</ul>
```
Expand Down

0 comments on commit edca096

Please sign in to comment.