Hi guys,
there are some scenarios in which Tapestry can be very useful as backend
for frontend for React apps, instead of Javascript BfFs as suggested by
React, e.g. nextjs.
There are many reasons to prefer a java BfF, the main one is reducing of
size and complexity of large React SPAs - it is much easier to do while
using a Java BfF (not necessarily Tapestry) then nextjs.
The idea is to build an ESM module from a React node project and use it
in Tapestry as a resource.
You can find here:
https://www.webclient.at/SourceCode#Demo_Application_Sources
how it works with tapestry versions up to 5.9.0 and React 19.1
As the future Tapestry version 5.10. enables ESM modules directly, I'v
tried to build the same demo with Tapestry head, but I am not able to
get it running. Does it make sense to keep trying? Will the version 5.10
be finished?
You can find here more about the motivation behind this endeavour:
https://www.webclient.at/WebClientExperience#Java_BfF_for_React_Micro
here a simple demo app:
https://www.webclient.at/DemoApp
As long as you are using React version lower than 19, it is possible to
use React UMD modules, in this case you would not necessarily need to
create an ESM module for the React app.
With regards, Peter Skala
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]