Skip to content

Commit

Permalink
Shorter code block
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed May 21, 2024
1 parent 44b7ca3 commit 02203cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/cookbook/migrate-from-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const element = <h1>{title}</h1>;
<doc-code filename="JavaScript">

```javascript
const image = `<img src="${href}" alt="${altText}" />`;
const image = `<img src="${href}" />`;
```

</doc-code>
Expand All @@ -43,7 +43,7 @@ const image = `<img src="${href}" alt="${altText}" />`;
<doc-code filename="React">

```javascript
const image = <img src={href} alt={altText} />
const image = <img src={href} />
```

</doc-code>
Expand Down

0 comments on commit 02203cf

Please sign in to comment.