Skip to content

Commit ab8ae53

Browse files
authored
Merge pull request #57 from reactjs/sync-943e3ce4
Sync with react.dev @ 943e3ce
2 parents 9d6e639 + 190bd0f commit ab8ae53

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

src/content/learn/conditional-rendering.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,8 @@ export default function PackingList() {
626626
627627
ສັງເກດທ່ານຕ້ອງຂຽນ `importance > 0 && ...` ແທນທີ່ຈະເປັນ `importance && ...` ສະນັ້ນຫາກ `importance` ເປັນ `0`, ຜົນລັບຈະບໍ່ສະແດງ `0`!
628628
629-
<<<<<<< HEAD
630629
ໃນວິທີການນີ້, ຈະໃຊ້ເງື່ອນໄຂສອງເງື່ອນໄຂແຍກກັນເພື່ອໃສ່ຊ່ອງວ່າງລະຫວ່າງຊື່ ແລະ label. ອີກວິທີໜຶ່ງ, ທ່ານສາມາດໃຊ້ fragment ທີ່ມີຊ່ອງວ່າງນຳໜ້າ: `importance > 0 && <> <i>...</i></>` ຫຼື ເພີ່ມຊ່ອງວ່າງພາຍໃນ `importance > 0 && <> <i>...</i></>`.
631-
=======
632-
In this solution, two separate conditions are used to insert a space between the name and the importance label. Alternatively, you could use a Fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
633-
>>>>>>> 6570e6cd79a16ac3b1a2902632eddab7e6abb9ad
630+
634631
635632
</Solution>
636633

src/content/learn/rendering-lists.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,11 +1146,8 @@ hr {
11461146

11471147
<Hint>
11481148

1149-
<<<<<<< HEAD
11501149
ທ່ານຈະຕ້ອງແປງ `map` ເປັນ loop ດ້ວຍໂຕເອງ, ຫຼື ໃຊ້ fragment.
1151-
=======
1152-
You'll either need to convert `map` to a manual loop, or use a Fragment.
1153-
>>>>>>> 6570e6cd79a16ac3b1a2902632eddab7e6abb9ad
1150+
11541151

11551152

11561153
</Hint>
@@ -1214,11 +1211,8 @@ hr {
12141211

12151212
ການໃຊ້ index ແຖວເກົ່າເປັນ `key` ບໍ່ເຮັດວຽກອີກຕໍ່ໄປເພາະວ່າແຕ່ລະໂຕຂັ້ນ ແລະ ຫຍໍ້ໜ້າແຕ່ລະໂຕຢູ່ໃນ array ດຽວກັນ. ເຖິງຢ່າງໃດກໍຕາມ, ທ່ານສາມາດກຳນົດ key ທີ່ແຕກຕ່າງກັນໃຫ້ແຕ່ລະລາຍການໄດ້ໂດຍໃຊ້ຄຳຕໍ່ທ້າຍເຊັ່ນ `key={i + '-text'}`.
12161213

1217-
<<<<<<< HEAD
12181214
ອີກວິທີໜຶ່ງ, ທ່ານສາມາດສະແດງຜົນ collection ຂອງ fragment ທີ່ປະກອບມີ `<hr />` and `<p>...</p>`. ເຖິງຢ່າງໃດກໍຕາມ, syntax `<>...</>` ບໍ່ຮອງຮັບການສົ່ງຜ່ານ key, ດັ່ງນັ້ນທ່ານຕ້ອງໄດ້ຂຽນ `<Fragment>` ຢ່າງຊັດເຈນ:
1219-
=======
1220-
Alternatively, you could render a collection of Fragments which contain `<hr />` and `<p>...</p>`. However, the `<>...</>` shorthand syntax doesn't support passing keys, so you'd have to write `<Fragment>` explicitly:
1221-
>>>>>>> 6570e6cd79a16ac3b1a2902632eddab7e6abb9ad
1215+
12221216

12231217
<Sandpack>
12241218

@@ -1264,11 +1258,8 @@ hr {
12641258

12651259
</Sandpack>
12661260

1267-
<<<<<<< HEAD
1261+
12681262
ຈື່ໄວ້ວ່າ, fragment (ມັກຂຽນເປັນ `<> </>`) ໃຫ້ທ່ານ group JSX node ໂດຍບໍ່ຕ້ອງເພີ່ມ `<div>`!
1269-
=======
1270-
Remember, Fragments (often written as `<> </>`) let you group JSX nodes without adding extra `<div>`s!
1271-
>>>>>>> 6570e6cd79a16ac3b1a2902632eddab7e6abb9ad
12721263

12731264

12741265
</Solution>

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,11 +367,7 @@ export default function Square() {
367367

368368
</ConsoleBlock>
369369

370-
<<<<<<< HEAD
371370
Component React ຕ້ອງການ return ໜຶ່ງ JSX element ແລະ ບໍ່ສາມາດສົ່ງ JSX ທີ່ຕິດພັນຫຼາຍອັນເຊັ່ນ ສອງປຸ່ມກົດ. ເພື່ອແກ້ໄຂບັນຫານີ້ທ່ານສາມາດໃຊ້ *fragments* (`<>` ແລະ `</>`) ເພື່ອລວມ JSX ທີ່ຕິດພັນຫຼາຍອັນດັ່ງນີ້:
372-
=======
373-
React components need to return a single JSX element and not multiple adjacent JSX elements like two buttons. To fix this you can use *Fragments* (`<>` and `</>`) to wrap multiple adjacent JSX elements like this:
374-
>>>>>>> 6570e6cd79a16ac3b1a2902632eddab7e6abb9ad
375371

376372
```js {3-6}
377373
export default function Square() {

src/content/reference/react-dom/components/input.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ To display an input, render the [built-in browser `<input>`](https://developer.m
3434

3535
<Canary>
3636

37-
3837
React's extensions to the `formAction` prop are currently only available in React's Canary and experimental channels. In stable releases of React `formAction` works only as a [built-in browser HTML component](https://react.dev/reference/react-dom/components#all-html-components). Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).
3938

4039
</Canary>

0 commit comments

Comments
 (0)