package rsp.app; import rsp.component.definitions.InitialStateComponent; import rsp.jetty.WebServer; import rsp.component.View; import static rsp.dsl.Html.*; /** * Run the class and navigate to http://localhost:8080. */ public final class HelloWorld { static void main(final String[] args) { final View view = message -> html( body( p(message) ) ); final var server = new WebServer(8080, __ -> new InitialStateComponent<>("Hello world", view)); server.start(); server.join(); } }