react-file-input
react-file-input copied to clipboard
<FileInput /> component for React
``` app.js:37554 Uncaught TypeError: React.createClass is not a function at Object../node_modules/react-file-input/lib/index.js (app.js:37554) at __webpack_require__ (app.js:20) at Module../resources/js/components/PageAdd.js (app.js:53894) at __webpack_require__ (app.js:20) at Module../resources/js/pages/car/CarAdd.js (app.js:56941) at __webpack_require__ (app.js:20) at Module. (app.js:56019)...
Any chances to update to accept React 15?
- Updated Package.json to use React 16 - Rewrote FileInput with ES6 classes
Hey, Thanks for the package, I am stuck somewhere can you please help me? I am trying the below piece of code for rendering the component, It is working perfectly...
Example: `` Thank you.
Hi there! How can I clear seleted value? I'm tried to set `value={this.state.image}` and then to set it to null, but it doesnt work.
Added z-index to parent div to prevent text input from being rendered underneath the FileInput component's parent.
This way you can include the class with Require.js or browser globals as well.