Creating a generic React component which handles different shapes of data objects
I was thinking about how to create a generic component that handles different shapes of data to render a list of items. A simplified example of this component looks as following: