I'm trying to update to the kotlin 1.6 wrappers, I...
# react
i
I'm trying to update to the kotlin 1.6 wrappers, I want and I'm having a hard time with the api changes. The
functionalComponent
function is gone and there is a new
FC
function that uses some new
ChildrenBuilder
api as opposed to the
RBuilder
which moved to kotlin-react-legacy. Apparently the kotlin-styled package is updated to 1.6 but still only uses the legacy
RBuilder
api - that gives me troubles with all my helper functions, since I'm in the new environment with a
ChildrenBuilder
in my handy but now cannot call
RBuilder.styledDiv
anymore.
a
You can take a look on my project https://github.com/karakum-team/kotlin-react-table-sample There were some migrations you need to do. Any additional questions are welcome
👍 2
s
I see that you’re not using the
styledX
alternatives in your project though. Is the idea that these are just not needed with the new
FC
alternative or what? Kinda confused with how these two suddenly don’t work with each other due to being in a different context.