3 ms·
Not too strongly opinionated on this one either way but I'd say the array looks cleaner when you can actually see the array; when it's derived from a function o
by JansjoFromIkea 2y ago
Not too strongly opinionated on this one either way but I'd say the array looks cleaner when you can actually see the array; when it's derived from a function or is using much more complicated data it can be quite a bit harder to pull useful info from and can be quite a bit easier for a junior to mess up.
Some of the worst JSX related code I've seen has involved people trying to build up arrays for data like this.