-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
A component that can be rendered from Ruby (Phex/ViewComponent), and imported from js (React). Proscenium knows about the importer, so can modify the resulting import accordingly.
For example, the InputComponent...
| /app/components/input
|__ component.rb
|__ react
|__ component.jsx
import InputComponent from '/app/components/input'The above will actually import /app/components/input/react/component.jsx.
render Input::Component.newThe above will do as you would expect.