Search code examples
scalajs-react

Is it possible to render HTML from a ReactComponentB?


I've got an existing HTML page that I have transcribed into scalajs-react scalatags in a ReactComponentB object, but the output is slightly different from the original HTML. Is there a way I can render out the HTML from the ReactComponentB so that I can compare it with my original HTML?


Solution

  • Sounds like React.renderToStaticMarkup() is what you're looking for.