Created
December 19, 2019 11:26
-
-
Save wirthi/88579d0f649c634cb61c469428b25171 to your computer and use it in GitHub Desktop.
React.js blogpost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- val htmlOrError = engine.invokeFunction( | |
- "renderReactServerSide", reactStoreJsonString, cdnOrigin.getOrElse("")).asInstanceOf[String] | |
+ val htmlOrError = engine.getBindings("js").getMember("renderReactServerSide") | |
+ .execute(reactStoreJsonString, cdnOrigin.getOrElse("")).asString |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment