Get started with React.js in Java


This is quite serious! The famous JavaScript framework React.js is now available to Java as a JSweet candy.

Of course there are still details to be tuned, and the JSX syntax is not supported (yet?), but there is enough there to start having fun with React.js in Java.

I will step through some examples to give you the basics on how to program a React.js application in Java. Continuer à lire

JSweet v1.0 is out: 10 reasons to use it

JSweet version 1.0 was released today.

JSweet is a Java to JavaScript transpiler built on the top of TypeScript and it gives access to hundreds of up-to-date and well-typed JavaScript APIs from Java. The following figure shows how JSweet translates from the TSD repository and uses the TypeScript tsc compiler and APIs (d.ts) to transpile Java into JavaScript.

With the release of version 1.0, I would like to explore the main reasons why you, as a programmer, would want to try JSweet out, and ultimately use it to program Web applications in a better and safer way.

Reason 1: Type Safety and Robustness

This is the most obvious reason, of course. JSweet ensures strong typing on JavaScript APIs and programs. JSweet has been designed to match TypeScript typing concepts and a JSweet program can bring the same type safety level as a TypeScript program.  Continuer à lire