Closed jchavarri closed 3 weeks ago
Currently, this code <> <div/> <div/> </> will trigger the infamous warning: Each child in a list should have a unique "key" prop.
<> <div/> <div/> </>
Each child in a list should have a unique "key" prop
This PR modifies the expression switch for fragments so that those with 0 or 1 child use jsx and those with 2 or more children use jsxs.
jsx
jsxs
Nice, thanks! 🤗
Currently, this code
<> <div/> <div/> </>
will trigger the infamous warning:Each child in a list should have a unique "key" prop
.This PR modifies the expression switch for fragments so that those with 0 or 1 child use
jsx
and those with 2 or more children usejsxs
.