Guest User

Untitled

a guest
Nov 16th, 2018
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ['US', 'USA', 'United States of America']
  2.  
  3. USUSAUnited States of America
  4.  
  5. TypeError: props.modalCountry.alt_spellings is undefined
  6.  
  7. const Component = ({ arr = [] }) => (
  8. <div>
  9. {arr && arr.join()}
  10. </div>
  11. );
  12.  
  13. const Component = ({ arr = [] }) => arr ? (
  14. <div>
  15. {arr.join()}
  16. </div>
  17. ) : null;
  18.  
  19. const Component = ({ arr = [] }) => (
  20. <div>
  21. {arr.join()}
  22. </div>
  23. );
Add Comment
Please, Sign In to add comment