daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Selector = ({ folders }) => (
  2.   <form>
  3.     <label for="example">Select folder</label>
  4.     <select class="form-control" id="example">
  5.       <TreeComponent folders={folders}>
  6.         {({ folder: { id, name } }) => (<option key={id}>{name}</option>)}
  7.       </TreeComponent>
  8.     </select>
  9.   </form>
  10. )
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