using styling in react js code example Example: inline styling in react style={ someCondition ? { textAlign:'center', paddingTop: '50%'} : {}}