Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Selector = ({ folders }) => (
- <form>
- <label for="example">Select folder</label>
- <select class="form-control" id="example">
- <TreeComponent folders={folders}>
- {({ folder: { id, name } }) => (<option key={id}>{name}</option>)}
- </TreeComponent>
- </select>
- </form>
- )
Add Comment
Please, Sign In to add comment