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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.