How to this thing in better way.
this.state.updateItem?this.state.updateItem.unit:'Unit';
I have tried with this.state.updateItem.unit || 'Unit', but it found out that it will produce error since this.state.updateItem is NULL then it can't find any property of unit.
How to do it in better way?