The button should ONLY appear if the prop is true, and the text field has a value in react code example Example: react file input <input type="file" />