SHARE
TWEET

Untitled

a guest Jun 25th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. state = {
  2.  cat: 'meow',
  3.  dog: 'bark',
  4.  fish: 'what sound do i make?',
  5.  snake: 'im not wanted for this experiment',
  6.  turtle: 'im also not wanted for this experiment'
  7. }
  8.  
  9. const {cat, dog, fish } = this.state;
  10. const animals = { cat, dog, fish };
  11. this.pets(animals)
  12.      
  13. const animals = {cat, dog, fish} = this.state
  14.      
  15. const {cat, dog, fish} = this.state
  16. this.pets(cat, dog, fish}
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top