styled-bootstrap-components icon indicating copy to clipboard operation
styled-bootstrap-components copied to clipboard

Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.

Open basakulcay opened this issue 5 years ago • 0 comments

I keep getting a warning with the below message, however when I checked the buttons in the code, I couldn't figure out what's causing it.

Error message: Warning: validateDOMNesting(...):

Code example :

  render() {
    return (
      <div className="Track">
        <div className="Track-information">
          <h3>{this.props.track.name}</h3>
          <p>
            {this.props.track.artist}| {this.props.track.album}{' '}
          </p>
        </div>
        <button className="Track-action">{this.renderAction()}</button>
      </div>

basakulcay avatar Jun 12 '20 13:06 basakulcay