Skip to content

Commit d345580

Browse files
committed
fix: update JSX syntax to self-closing tags (img) in writing-markup-with-jsx.md
1 parent 6be2b02 commit d345580

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/content/learn/writing-markup-with-jsx.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Suppose that you have some (perfectly valid) HTML:
7474
src="https://react.dev/images/docs/scientists/yXOvdOSs.jpg"
7575
alt="Hedy Lamarr"
7676
class="photo"
77-
>
77+
/>
7878
<ul>
7979
<li>Invent new traffic lights
8080
<li>Rehearse a movie scene
@@ -106,7 +106,7 @@ export default function TodoList() {
106106
src="https://react.dev/images/docs/scientists/yXOvdOSs.jpg"
107107
alt="Hedy Lamarr"
108108
class="photo"
109-
>
109+
/>
110110
<ul>
111111
<li>Invent new traffic lights
112112
<li>Rehearse a movie scene
@@ -145,7 +145,7 @@ For example, you can use a `<div>`:
145145
src="https://react.dev/images/docs/scientists/yXOvdOSs.jpg"
146146
alt="Hedy Lamarr"
147147
class="photo"
148-
>
148+
/>
149149
<ul>
150150
...
151151
</ul>
@@ -162,7 +162,7 @@ If you don't want to add an extra `<div>` to your markup, you can write `<>` and
162162
src="https://react.dev/images/docs/scientists/yXOvdOSs.jpg"
163163
alt="Hedy Lamarr"
164164
class="photo"
165-
>
165+
/>
166166
<ul>
167167
...
168168
</ul>

0 commit comments

Comments
 (0)