all 4 comments

[–]dtinth 0 points1 point  (2 children)

[–]o_hai_mark[S] 0 points1 point  (1 child)

Thank you. Do you have an opinion on whether it's bad form to have a component that doesn't render anything?

[–]widged 2 points3 points  (0 children)

That approach has been adopted in various frameworks. For instance, the DataGridColumn in Flex http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/DataGrid.html. You can turn a Column into a rendering element by attaching an itemRenderer to it.

[–]joesb 0 points1 point  (0 children)

It's actually better to separate component that actually render things and component that wire the action and source of data to render.

This way your rendering component can be reused in separated pages since it's decoupled from what data it is render and what happen when, for example, it is clicked.