Reacts the visibility attribute support for elements.
So, if I want to show or hide an element on the page, but still you have a place to hide, so that the layout does not move, how can I do something like this?
<i className="fa fa-trash" visibility={this.state.showButton ? "visible": "hidden"} />
reactjs
Richard
source share