SHARE
TWEET

Untitled

a guest Jan 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const FolderName = ({ folder: { name }, level }) => (
  2.   <div style={{ paddingLeft: level * 20 }}>{name}</div>
  3. )
  4.  
  5. const FolderList = ({ folders }) => (
  6.   <>
  7.     <TreeComponent folders={folders}>
  8.       {(props) => (<FolderName {...props} />)}
  9.     </TreeComponent>
  10.   </>
  11. )
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