title: How to make input box readonly conditionally in React
body: <p>How do I make an input box readonly conditionally? I have a state value I want to check and if it is empty, I want the input box prop of readonly to be added to the input box. This is my implementation of this so far:</p>
  <pre><code>&lt;Input title={ 'Node Type'} name={ 'nodeType'} inputtype={ 'text'} placeholder={ 'Type node type name'} readonly={this.props.updateCards === {}} /&gt;
  </code></pre>
  <p>*edited question to say I want to check if it is empty rather than true based on comment reply</p>