Fragment rendering makes compiling lists/tables/etc so much simpler. I'm glad the new renderer finally made this possible! I'm definitely excited to start using this in a large project!
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.
26
u/jarail Sep 26 '17 edited Sep 26 '17
Fragment rendering makes compiling lists/tables/etc so much simpler. I'm glad the new renderer finally made this possible! I'm definitely excited to start using this in a large project!