daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest May 16th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.setState(prevState => {value: prevState + 1 })
  2.    
  3. reset() {
  4.   this.setState(prevState => ({value: prevState.initialValue}));
  5.   this.setState({initialValue: null});
  6. }
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