GithubHelp home page GithubHelp logo

Comments (7)

jtmalinowski avatar jtmalinowski commented on May 18, 2024

Hi,
Thanks for this suggestion!
Would you mind checking if the version of react we're using (react-source gem) supports this OOBE?

from react-rails.

zpao avatar zpao commented on May 18, 2024

JSXTransformer doesn't support that, at least not in shipping version. We added it in master though and it'll be a part of 0.11 (or maybe 0.10.1) release.

Also, that sample code you have won't actually work. Extending React.component isn't a thing yet (maybe one day, but not yet)

from react-rails.

pistachiomatt avatar pistachiomatt commented on May 18, 2024

Then what's that Groups post going on about? https://groups.google.com/d/msg/reactjs/zbHSSnDQK8A/6rry4xxWpSkJ

from react-rails.

zpao avatar zpao commented on May 18, 2024

If you read the rest of that, he linked to his app which is using https://github.com/elucidata/react-coffee, which adds React.Component and allows it to work with CoffeeScript class syntax (which presumably ends up having the same semantics as ES6 classes, which would be why it works). You then need to call toComponent to get an actually usable thing in React,

We should leave this open so we remember to add harmony support.

from react-rails.

zpao avatar zpao commented on May 18, 2024

Harmony works now so if you're interested in adding this, it would probably be appreciated :)

from react-rails.

wiredprairie avatar wiredprairie commented on May 18, 2024

I thought adding the Harmony switch was a good idea, so I had a go at it: #107

from react-rails.

rmosolgo avatar rmosolgo commented on May 18, 2024

Added in #136 !

from react-rails.

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.