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.new
The above will do as you would expect.
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...The above will actually import
/app/components/input/react/component.jsx.The above will do as you would expect.