Giter Site home page Giter Site logo

React16 port about the-graph HOT 7 CLOSED

sarat1669 avatar sarat1669 commented on June 23, 2024
React16 port

from the-graph.

Comments (7)

jonnor avatar jonnor commented on June 23, 2024

The basics work with React16, see this example: #360 (comment)

If you see things that don't work, please post them here as comments!

I would be very happy for a Pull Request that: updates API usage to no longer use deprecated functions, switches to React 16, fixes any critical bugs. Then we could probably switch over right away.

It is unlikely that I will be able to do the port within the next couple of months, unless someone is willing to sponsor such development.

from the-graph.

wizard23 avatar wizard23 commented on June 23, 2024

Hi! I'm having problems using the-graph with preact ( https://preactjs.com/ ) which also does not like strings for refs. preact only supports functions as refs. Would the react16 port include functions for refs? I would really like to use the-graph for my current project since it is the best flow based programming graph editor I found during my two days web research. I have some budget for this project so I could sponsor some dev time. Could you please estimate the needed dev time and your hourly rate. If you want we can switch to personal communication for that purpose. My email is: [email protected]

from the-graph.

jonnor avatar jonnor commented on June 23, 2024

@wizard23 I had a quick look at the-graph use of refs. There are not that many, and I think that probably they can all be removed in favor of props/state (or better component composition). Are you aware of other things that cause issues with Preact? Whether it is reasonable to support that in addition to React depends entirely on how much differences there are.

from the-graph.

wizard23 avatar wizard23 commented on June 23, 2024

@jonnor

Are you aware of other things that cause issues with Preact?

I'm pretty sure this is the only problem for preact. I've ported some apps tp preact now and this is the only problem that comes up. I can't say for sure though since the ref stuff causes an exception and the rest of the code does not get executed.

from the-graph.

jonnor avatar jonnor commented on June 23, 2024

@krizka are you aware of other React 16 issues, or do you think we can close this one?

from the-graph.

krizka avatar krizka commented on June 23, 2024

@jonnor I had no problems using the-graph with React 16. But the warnings about static fields on components, which I hope we fixed.

from the-graph.

jonnor avatar jonnor commented on June 23, 2024

Great, thanks for testing and for the PRs! Closing this issue then.

Right now there is no resources (spare time) to add Preact support on our side. If someone is willing to test and submit a PR with compatibility fixes and these are small, I will consider merging them.

from the-graph.

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.