What's difference between RBuilder and RDomBuilder?

412 Views Asked by At

In the kotlin react demo projects i see both

fun RBuilder.someComponent(){...}

and

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

What is the difference between these two?

1

There are 1 best solutions below

2
s1m0nw1 On BEST ANSWER

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.