I am trying to render text in a text component that is conditional.
if, this.state.input is an empty string,
then it should display this.props.value.
otherwise, it should display this.state.input
is there a way to do that?
<text>{
code??
}</text>