DEV Community

Discussion on: Are you giving the proper sense to React.Fragment?

Collapse
 
andrewbridge profile image
Andrew Bridge

This is exactly what I came to the comments hoping to post, thanks for getting there first!

I'm baffled to see such a simple example turned into such a lot of code and it exemplifies the over-engineering the React community appears to deal with. Replace null with <React.Fragment /> if you must but creating a list shouldn't take 10s of lines of code.