SHARE
TWEET

Untitled

a guest Sep 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { memo } from 'react';
  2.  
  3. const EmojiImages = ({ list }) => {
  4.   return (
  5.     <>
  6.       {list.emojis.map(current => (
  7.         <img alt="emoji" src={current} key={current} />
  8.       ))}
  9.     </>
  10.   );
  11. };
  12.  
  13. const areEqual = (prevProps, nextProps) => (prevProps.list.id === nextProps.list.id);
  14.  
  15. export default memo(EmojiImages, areEqual);
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