Imagine I have a very simple React component that shows a list of elements that are stored in this.state.myList (see example below)
this.state.myList
Hitting a \"Refresh\" bu
small edit from @Tom's answer above.
render: function() { return ( { this.state.fetchInProgress ? : this.state.myList.map(function(item) { return {item.name} }) } ); }