1

In the kotlin react demo projects i see both

fun RBuilder.someComponent(){...}

and

fun RDOMBuilder<*>.someComponent(){...}

What is the difference between these two?

deviant
  • 3,539
  • 4
  • 32
  • 47

1 Answers1

1

RDOMBuilder is part of the kotlin-react-dom wrapper, whereas RBuilder is part of the kotlin-react wrapper. Depending on what library you want to use, the one or the other Builder may be used.

s1m0nw1
  • 76,759
  • 17
  • 167
  • 196
  • what if i use both? could you please explain the difference for dummies? are they interchangeable? – deviant Feb 11 '18 at 21:01
  • @ deviant you'll need the react-dom if ReactDOM is used: https://reactjs.org/docs/react-dom.html; the following gives more information on the differences of both libs: https://stackoverflow.com/a/34114665/8073652 – s1m0nw1 Feb 11 '18 at 21:04