mother / react-files

A file input (dropzone) management component for React
MIT License
145 stars 35 forks source link

React 18 #42

Closed Djibdjib closed 1 year ago

Djibdjib commented 1 year ago

Hi, when this package may be available for react 18 ?

Regards

KevinRavasi commented 1 year ago

Any news on this?

asabhaney commented 1 year ago

Planning to address this next week

karls4 commented 1 year ago

Any update on this?

Or can you provide a workaround on how I can get this plugin working on my react 18 app?

asabhaney commented 1 year ago

Part of the problem is that the testing library we were using (enzyme) does not support React 18, so we have to rewrite the tests. That being said, I've pushed out primitive support for React 18 in #43 if you're feeling bold and want to try it out. If you do decide to try it out, note that it branches off react-files version 3, which is in alpha at the moment. There are some breaking changes between v2 and v3, so I'd suggest taking a look at the demos in #32 for upgrade guidance.

I'll try to get #43 merged in to v3 in the next few days, and release alpa-4 which will support React 18.

asabhaney commented 1 year ago

Fixed in 3.0.0-alpha.4