this.orientation = this.props.orientation
? this.props.orientation == 'horizontal'
? 'row'
: 'column'
: 'column';
May I know how I interpret this conditional branching? Got this code somewhere else from the web. I did read this https://javascript.info/ifelse#multiple but I still can't understand it.
From my understanding is that this.props.orientation which the orientation is retrieved from the parent. If this.props.orietation == 'horizontal' then return column? Then else if this.props.orientation =='row' then return column?