GithubHelp home page GithubHelp logo

Comments (10)

jchen-eb avatar jchen-eb commented on July 19, 2024 2

That's a great idea. One issue though is that we're using britecharts-react in our company's app that's on React 15, I'm not sure if it will still work if there are two different versions of React. But our company's app will eventually be on React 16 so we will definitely make the upgrade at some point. Either way it's worth investigating to see if we can upgrade britecharts-react to React 16 first, I'll spend some time looking into it today.

from britecharts-react.

benmvp avatar benmvp commented on July 19, 2024 2

The next big project for Frontend Platform team is React 16 so hopefully it won't be too long from now!

from britecharts-react.

Golodhros avatar Golodhros commented on July 19, 2024 2

Uohhh! Thanks for the heads up @sdalezman!

Let's see if we manage to move it soon!

from britecharts-react.

davegomez avatar davegomez commented on July 19, 2024 1

@Golodhros you should close this issue too.

from britecharts-react.

jchen-eb avatar jchen-eb commented on July 19, 2024

So we could upgrade the project to React 16, but we would need to maintain compatibility with React 15 so that this module could be used within a React 15 app without needing to bundle an additional version of React 16. That would probably mean either:

  1. Only use the parts of the React API that are compatible with both React 15 and 16. That way somebody could, in theory, use this module in both React 15 and 16 apps. I haven't looked into how feasible this is.

  2. Include both a React 16-compatible and a React 15-compatible distribution file, similar to how Enzyme does it: http://airbnb.io/enzyme/ I feel like this will end up being difficult to maintain, we don't really have the capacity to do this and would have to rely more on open source contributions to make it work. But it could be a good way to go.

from britecharts-react.

Golodhros avatar Golodhros commented on July 19, 2024

Let's wait then. We can leave this open as a 'proposal' and move it depending on the push of the community for it.

from britecharts-react.

sdalezman avatar sdalezman commented on July 19, 2024

We're using britecharts with react-16 and haven't had any problems yet (outside of some issues with react-test-renderer that we've worked around).

That being said, would love to see official support!

from britecharts-react.

davegomez avatar davegomez commented on July 19, 2024

@Golodhros and @jchen-eb I would like to work on this and see if I can add support and as many new features while keeping the compatibility with React 15. Will be fun 😁

BTW, how open are you guys to use @flow as replacement of prop-types?

from britecharts-react.

Golodhros avatar Golodhros commented on July 19, 2024

That would be awesome @davegomez!!

I am pushing for having our release issue fixed so we can start moving forward, hope it is done by next week!

Re: Flow, it seems that somebody is looking into adding Typescript to Britecharts and we want to have it open to different platforms (using this code to fuel the Angular and Vue wrappers). Not sure if Flow fits well into this strategy.

from britecharts-react.

miglesiasEB avatar miglesiasEB commented on July 19, 2024

Thanks @davegomez for this!!

from britecharts-react.

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.