Skip to content

Commit 02203cf

Browse files
committed
Shorter code block
Signed-off-by: macdonst <simon.macdonald@gmail.com>
1 parent 44b7ca3 commit 02203cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/cookbook/migrate-from-react.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const element = <h1>{title}</h1>;
3434
<doc-code filename="JavaScript">
3535

3636
```javascript
37-
const image = `<img src="${href}" alt="${altText}" />`;
37+
const image = `<img src="${href}" />`;
3838
```
3939

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

4545
```javascript
46-
const image = <img src={href} alt={altText} />
46+
const image = <img src={href} />
4747
```
4848

4949
</doc-code>

0 commit comments

Comments
 (0)