GithubHelp home page GithubHelp logo

Comments (6)

AndyOGo avatar AndyOGo commented on June 7, 2024 1

@benwiley4000
Thank for your quick answer.
And sorry for delay, currently problems drop from every side...

Interesting, in that case I agree it should work.

from react-dot-fragment.

benwiley4000 avatar benwiley4000 commented on June 7, 2024 1

from react-dot-fragment.

benwiley4000 avatar benwiley4000 commented on June 7, 2024

@AndyOGo I don't know, would you care to test? :)

from react-dot-fragment.

benwiley4000 avatar benwiley4000 commented on June 7, 2024

@AndyOGo Intuitively I think the answer is yes but I haven't checked yet. If you'd like to test on your own, we can add the answer to the docs. Otherwise I may be able to get around to checking sooner or later, but I can't give a timeline. My development's been on hiatus but I'll likely resume in the next week or so.

from react-dot-fragment.

benwiley4000 avatar benwiley4000 commented on June 7, 2024

I did a quick review of what we depend on from React:

  1. require('react') returns the library as React
  2. React has a createElement function
  3. Element excepts a ref callback prop which receives the DOM element for the div
  4. (Optional but desired) Newer versions have a React.Fragment element which is used in place of the polyfill

The "compat" versions of preact and inferno seem to support 1-3. They don't appear to support React Fragments at all yet, but it looks like you should be able to use this polyfill just fine! Let me know if you experience any issues there.

@AndyOGo

from react-dot-fragment.

benwiley4000 avatar benwiley4000 commented on June 7, 2024

Going to close this for now. Can re-open if we see this doesn't work.

from react-dot-fragment.

Related Issues (6)

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.