Giter VIP home page Giter VIP logo

Comments (11)

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024 3

@AntCrick @dargue3 @viztor should now work nicely with React 16.

from react-reorder.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

@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.

dargue3 avatar dargue3 commented on May 23, 2024

+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.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

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.

AntCrick avatar AntCrick commented on May 23, 2024

+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.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

Ah, that's it! Thanks @AntCrick will update now and publish a new alpha version.

from react-reorder.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

@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.

birdy90 avatar birdy90 commented on May 23, 2024

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.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

Ah, poop. So many changes to make. Will try to get this sorted shortly.

from react-reorder.

birdy90 avatar birdy90 commented on May 23, 2024

Maybe it will help: there's recommendations for migrating

from react-reorder.

JakeSidSmith avatar JakeSidSmith commented on May 23, 2024

@birdy90 published some fixes at 3.0.0-alpha.6.

from react-reorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.