hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Add an option which adds the correct frontend React and Signal etc. dependencies

Open TatuLund opened this issue 7 months ago • 3 comments
trafficstars

Describe your motivation

I am about to convert old Hilla/Lit application to Hilla/React. It would be convenient if there is a simple command that will add the needed frontend dependencies using the preferred versions defined by the platform.

Describe the solution you'd like

The first thing that popped to my mind would be maven command, e.g.

mvn vaadin:add-react

Describe alternatives you've considered

This could be utility also in Copilot, VSCode plugin or Vaadin CLI (although I think the last one is not well known and the first choice for many).

Additional context

No response

TatuLund avatar Apr 09 '25 18:04 TatuLund

There is existing React mode switch that enables React dependencies. It would be preferred if React mode could be enabled with a dedicated property instead of the command.

platosha avatar Apr 10 '25 11:04 platosha

So let's document using vaadin.react.enable for this use case.

platosha avatar Apr 10 '25 11:04 platosha

So let's document using vaadin.react.enable for this use case.

Ok. I could not find that when I was browsing Hilla docs when doing this.

TatuLund avatar Apr 11 '25 11:04 TatuLund