Feel free to make that return an array and not throw a console error.
Hint: This will always be the error you get: A valid React element (or null) must be returned. Notice how that doesn't say array? The reason it doesn't is because ALL React components must return React elements. As of React 16, all React components must return a React Element or array of React Elements.
0
u/[deleted] Sep 27 '17
[deleted]