On Fri, Apr 12, 2019 at 1:04 PM Craig Mitchell <mail@craig-mitchell.com> wrote:
You can use both of them together ;) We use react+GWT and absolutely love it. We use a state management library Arez (https://arez.github.io/) which is very similar conceptually to Mobx done in Java style. You can see a sample application @ https://github.com/react4j/react4j-todomvc/tree/arez_maven/src/main/java/react4j/todomvcThat is very cool! I couldn't get Super Dev Mode working due to:
[ERROR] linkers other than CrossSiteIFrameLinker aren't supported. Found: com.google.gwt.core.linker.SingleScriptLinker
This may be true running the TodomvcProd.gwt.xml but if you run TodomvcDev.gwt.xml it should be fine. We don't use Maven at work so I may have misconfigured the tooling :/
However, the GWT compile worked fine, and it ran on my Tomcat server. Going to dive into the code to see how easy/hard it would be to use existing React components.
We *used* to use existing react components but due to differences between the different environments it always felt a bit clunky and I am not sure how easy it would be to do at this stage. You would probably need to use jsinterop to get the react component type and write a custom builder to create the component and it should be possible but we don't do this anymore. We found it is easier to just port the component and keep in java land.
Cheers,
Peter Donald
Peter Donald
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment