Explore tweets about #react.fragment on Twitter
@pozda
Ivan Pozderac
3 hours ago
@tomiwa_of_mars @itisteacher or you can just use react fragment tag (I prefer short version which is just an empty tag) instead of div to avoid #divitis and to achieve good HTML semantics. You also can still use <a> for links
0
0
0
@Xiaoyan666666
Xiaoyan
5 days ago
#WebDev @NULifeSFBA In React, we usually use div to wrap and group content on the page inside of a single React Component. But if we use Flex, the outside div won't work properly. React Fragment could perfectly solve this. We can wrap our ContentComponent in React Fragments.
0
0
0
@Twaites
Twaites
7 days ago
Hello <React.Fragment>
0
0
1
@NeauxPro
No Pro
7 days ago
Hello <React.Fragment>
1
0
4
@richardjlo
Richard Lo
8 days ago
✅ Got @tailwindui working! Took me a while to figure out how to convert HTML to JSX, but this @code (how did they get that handle??) plugin handled it perfectly. Just needed to add <React.Fragment> around the code to get it to work. https://t.co/lcu9jPBTn0 https://t.co/5SAOpzwzZV
Tweet media one
1
0
3
@PurpleMarsAlien
PurpleMarsAlien
11 days ago
So, how do you explain to a PM who contracted out a VERY IMPORTANT project to a "React Expert" that our company literally got fucked over with an app which is mainly JS DOM manipulation re: 2005 in a React.Fragment container?
1
0
0
@stephqqmore
Stephanie
12 days ago
Ever wonder the difference between :active and :focus or <> and React Fragment? This neat website has the answers 👀 👀 https://t.co/XKcJsbkUzQ
0
2
8
@heppokoFrontend
.Hiroya🍣🍵
13 days ago
React.Fragmentをさわると余計にそういう気持ちになるな( ˘ω˘ )
0
0
0
@thelogeshwaran
Logeshwaran
13 days ago
Day 52: ☑️ Working on react exercises that use Wikipedia API and created accordion app using useEffect and useState. ☑️ Learnt about the XSS attacks, React fragment the difference between rem and em. #151daysofcode #react #javscript
1
1
5
@Kieran6dev
Kieran Roberts
14 days ago
Breaking down #React 👇 🔸Adjacent JSX elements must be wrapped inside an enclosing tag. Don't use a wrapping <div> . We can do better. 🔸 Instead we can use React.Fragment to group children without adding extra nodes to DOM. 🔸 This can be simplified using <> syntax. https://t.co/oAYKiHH1q1
Tweet media one
2
1
6
@codingsafari
Nico Braun
15 days ago
@BenLesh Just because you export one of the things as default, doesn't mean you can't export the other things as is. React is actually doing this AFAIK. import React, { Fragment } from 'react'
0
0
0
@ICanMeltYou
The K!ng ♠️
16 days ago
0
8
5
@heppokoFrontend
.Hiroya🍣🍵
17 days ago
React.Fragment を Layout で使うと、最後のモジュールが2重に出力されるっぽいんだけど、何が悪いのだろう👀 function Layout({ children }) { return ( <React.Fragment> <Header /> <main>{children}</main> <Footer /> ← 2つ出る </React.Fragment> ) }
0
0
0
@leidegre
John Leidegren
18 days ago
@andrewingram Oh, <> and <React.Fragment> are not the same you say?
0
0
0
@heppokoFrontend
.Hiroya🍣🍵
22 days ago
久しぶりにReactに触れてみているマン。ルートの不要なdiv要素がいらなくなったという噂を聞いていたけれど、結局React.Fragment要素(的な)のは必要なのね👀
0
0
0
@denvercoder
Tim Myers
25 days ago
.map(item => ( <React.Fragment key={https://t.co/OjsCc93MDw}> <Item />
0
0
4
@denvercoder
Tim Myers
25 days ago
Just learned that React sees this fragment "<>" as a "Parent Element" and if you want to silence the "child doesn't have key" warning you have to use the full "React.Fragment" and put the key on that. .map(item => ( <> <Item key={https://t.co/OjsCc93MDw} />
2
0
6