uptick/react-keyed-file-browser

How to use using JSX?

Closed this issue · 1 comments

Noob question but I am having difficulty implementing the basic example using JSX?

import React from 'react'
import FileBrowser from 'react-keyed-file-browser'

const FileBrowserComponent = () => {
 const data = [] //example data
 return (
 <FileBrowser
    files={data}
  />
 )
};

export default FileBrowserComponent;

How do you make this work? Thanks!

Apologies for taking so long to get back to you. If you follow the examples on the demo-site with a valid react environment. It should work out of the box.

If you are still stuck, feel free to create a new issue!
I'll be closing this as a part of cleaning up.