Is it possible to render HTML from a ReactComponentB?

149 Views Asked by At

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?

1

There are 1 best solutions below

1
On BEST ANSWER

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