SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 78 in 1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   render() {
  2.     const counters = this.props.counters;
  3.  
  4.     return counters.map(element => {
  5.       return (
  6.         <div className="count">
  7.           <button className="btn grey" onClick={this.handleAdd}>Add Counter</button>
  8.           <div className="counter"> <h2>Counter</h2></div>
  9.           <button onClick={this.decrement}>&ndash;</button>
  10.           <span className="count">{element.count}</span>
  11.           <button onClick={this.increment}>+</button>
  12.           <p><button onClick={this.reset}>RESET</button></p>
  13.          
  14.           <div className="center">
  15.             <button className="btn grey" onClick={this.handleDelete(element.id)}>Delete Counter</button>
  16.           </div>
  17.         </div>
  18.       )
  19.     })
  20.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top