Skip to content

react-rails #231

@jtmalinowski

Description

@jtmalinowski

Guys, I'm starting my holidays next week, and also I need this in one of my projects.

I was discussing this with @zpao in one of issue discussions here.

Basically the idea is to take ember-rails code and use it to expose react.js and jsxtransformer.js in assets/.

Second thing would be to register sprockets engine to transform JSX, we could steal a bit of code from https://github.com/leshill/handlebars_assets and using execjs run jsxtransformer. I already tested all this and it works ok. Good thing we have a patch merged to allow jsx transformation using non-node, non-browser JS environment: #217

If no one is in a hurry about this, I would start making this gem, restructure the repo a bit (move all gem files into gems/ dir) and make all that's necessary to have a proper react-rails gem. I should be ready with an initial version of this some time next week.

PR will follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions