You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/javascript-in-jsx-with-curly-braces.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,13 +424,13 @@ body > div > div { padding: 20px; }
424
424
425
425
</Solution>
426
426
427
-
#### Write an expression inside JSX curly braces {/*write-an-expression-inside-jsx-curly-braces*/}
427
+
#### Psaní výrazu ve JSX pomocí složených závorek {/*write-an-expression-inside-jsx-curly-braces*/}
428
428
429
-
In the object below, the full image URL is split into four parts: base URL, `imageId`, `imageSize`, and file extension.
429
+
V objektu níže je URL obrázku rozdělena na čtyři části: URL, `imageId`, `imageSize` a přípona.
430
430
431
-
We want the image URL to combine these attributes together: base URL (always `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), and file extension (always `'.jpg'`). However, something is wrong with how the `<img>` tag specifies its `src`.
431
+
Chceme aby URL obrázku kombinovala tyto atributy: URL (stále `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`) a příponu souboru (pořád `'.jpg'`). Nicméně, něco je špatně s tím jak `<img>` tag specifikuje svůj atribut `src`.
432
432
433
-
Can you fix it?
433
+
Dokážete to spravit?
434
434
435
435
<Sandpack>
436
436
@@ -474,15 +474,15 @@ body > div > div { padding: 20px; }
474
474
475
475
</Sandpack>
476
476
477
-
To check that your fix worked, try changing the value of`imageSize`to`'b'`. The image should resize after your edit.
477
+
Pro kontrolu, jestli vaše oprava funguje, zkuste měnit hodnotu `imageSize`na`'b'`. Obrázek by měl změnit velikost.
478
478
479
479
<Solution>
480
480
481
-
You can write it as`src={baseUrl + person.imageId + person.imageSize + '.jpg'}`.
481
+
Můžete to napsat jako`src={baseUrl + person.imageId + person.imageSize + '.jpg'}`.
0 commit comments