Comments (11)
@AntCrick @dargue3 @viztor should now work nicely with React 16.
from react-reorder.
@viztor this lib uses the create-react-class
module, which should still be compatible with React 16.
If not, I will be re-writing v3 in ES6 / TypeScript, and so will using actual classes.
from react-reorder.
+1
I don't believe this works with React 16, unless you're saying we need to include create-react-class
in our dependencies?
from react-reorder.
It is a dep of react-reorder: https://github.com/JakeSidSmith/react-reorder/blob/master/package.json#L34
Can someone explain what exactly is the issue with React 16? :)
from react-reorder.
+1 Though I think it could be an issue with the version that is on npm as i used npm install to install this and it's installed [email protected]
and the react-reorder package.json doesn't have create-react-class in the dependencies that i can see so could be that maybe?
from react-reorder.
Ah, that's it! Thanks @AntCrick will update now and publish a new alpha version.
from react-reorder.
@AntCrick @dargue3 @viztor have published a fix at 3.0.0-alpha.5
.
Please try this out, and if your issue is fixed, then close this issue. 🙂
from react-reorder.
I get Uncaught TypeError: Cannot read property 'oneOfType' of undefined
because of
...
var PropTypes = React.PropTypes;
Reorder.propTypes = {
component: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
...
And as it's said here https://reactjs.org/docs/typechecking-with-proptypes.html
it is deprecated and moved to some package. What should I do to handle this problem?
from react-reorder.
Ah, poop. So many changes to make. Will try to get this sorted shortly.
from react-reorder.
Maybe it will help: there's recommendations for migrating
from react-reorder.
@birdy90 published some fixes at 3.0.0-alpha.6
.
from react-reorder.
Related Issues (20)
- Unable to make 3.0.0-alpha.7 work with react 16.9 HOT 5
- Less performant deeper in the dom? HOT 1
- Please add events on "drag start" and "drag end" HOT 3
- Can't disable auto scroll HOT 7
- Another complete re-write in TypeScript, with hooks, React 16-17 support, and more HOT 4
- can't reorder
- TypeError: this.state.draggedStyle is null HOT 2
- Update PropTypes HOT 1
- Warning: This synthetic event is reused for performance reasons. HOT 3
- placeholder class is not added when dragging input fields HOT 3
- Overriding sorting behavior HOT 10
- V3 Alpha Issues HOT 47
- Warning with react 15.5.0 HOT 12
- can't control dragged div HOT 17
- Images Reloading/Flashing HOT 9
- Error: Expected reorderId to be a string. Instead got undefined HOT 12
- Tidy up prop documentation in readme (v3) HOT 2
- Issues with embedded images? HOT 6
- Unable to set reorder to a button HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-reorder.