Skip to content

Commit 35f1578

Browse files
authored
Merge pull request #1158 from toufiqulislamtanmoy/patch-4
Fragment in react js
2 parents 90d03f5 + 45e2e05 commit 35f1578

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

data/react-cheat-sheet.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@
8080
}
8181
]
8282
},
83+
{
84+
"title": "রিঅ্যাক্ট JS এ ফ্র্যাগমেন্ট (Fragment) ব্যবহার",
85+
"items": [
86+
{
87+
"definition": "ফ্র্যাগমেন্ট হল একটি ওয়ার্পার যা DOM এ অতিরিক্ত নোড যোগ না করেই একাধিক এলিমেন্টকে গ্রুপ করতে সাহায্য করে।",
88+
"code": "<>\n <h1>Title</h1>\n <p>This is a paragraph.</p>\n</>"
89+
},
90+
{
91+
"definition": "React.Fragment এবং <> </> এর মাধ্যমে JSX কে গ্রুপ করা সম্ভব, তবে ছোট ট্যাগ ব্যবহারে React.Fragment এর পরিবর্তে <> </> ব্যবহার করা সুবিধাজনক।",
92+
"code": "<React.Fragment>\n <h1>Header</h1>\n <span>Subtitle</span>\n</React.Fragment>"
93+
}
94+
]
95+
},
8396
{
8497
"title": "রিঅ্যাক্ট JS এ কন্ডিশনাল রেন্ডারিং (Conditional Rendering)",
8598
"items": [

0 commit comments

Comments
 (0)