Skip to content

Use react-rails inside rails engine #1037

@tranhoangvuit

Description

@tranhoangvuit

I used react-rails in my main app but some of my rails engine need to use react as well. Do we have any way to use react-rails inside rails engines? I mean we create by my own component on use it inside my engine.
Btw: After research a bit about it, I saw this answer about this: https://stackoverflow.com/questions/44447696/including-react-react-rails-into-a-rails-engine. Can we do like that? Is it official way in react-rail?

Thank you guys so much for support this issues.

System configuration

Sprockets: (>= 2.8, < 4.0)
React-Rails version: 2.4.7
Rails version: 5.2.1
Ruby version: 2.5.1


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions