package js
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
- trait GraalJs extends Defaults with JsValues with Stdlib
-
final
case class
WindowLocation(href: String, origin: String, protocol: String, hostname: String, port: String, pathname: String, search: String, hash: String) extends Product with Serializable
This corresponds to
window.location
in JavaScript.
Value Members
- object GraalJs extends GraalJs
- object GraalJsComponents
- object LanguageJs extends Language
-
object
ReactSsr
Instructions for basic React SSR on the GraalVM:
Instructions for basic React SSR on the GraalVM:
1. Bundle React JS into your application yourself. 2. Use Expr.requireFileOnClasspath() to load React JS files. 3. Provide the above Exprs to ReactSsr.Setup.apply(). 4. Run the resulting Expr of above to initialise your AbstractGraalContext instance(s). 5. Optionally call ReactSsr.setUrl() if your component expects to read it (eg. has a router). 6. Call ReactSsr.renderToString() or ReactSsr.renderToStaticMarkup() to render a component.
See ScalaGraal's tests for concrete usage examples.
- object WindowLocation extends Serializable