vecty
                                
                                 vecty copied to clipboard
                                
                                    vecty copied to clipboard
                            
                            
                            
                        Components cannot return List/KeyedList even though it is valid ComponentOrHTML
After merging https://github.com/gopherjs/vecty/pull/158 it came to our attention that a Component Render method cannot return List / KeyedList even though it is valid ComponentOrHTML.
See https://github.com/gopherjs/vecty/pull/158#issuecomment-341882684
Error: vecty: internal error (unexpected ComponentOrHTML type vecty.List)
I'm hoping users will find this issue when searching for the above panic message now.
Oh, so it's a bug actually. Damn :sweat_smile:. This is a must IMHO, otherwise we're forced to add an additional HTML tag as a workaround.
It seems this has been a bug for five years, has a solution emerged in the meantime? Or is it just not possible to have multiple top-level elements in a component?
@PotatoesFall you just have to have the children exist within an HTML element.
return vecty.Div(
    ...child components...
)
Yeah, this would be nice to fix (PRs welcome) but it's not the end of the world.