Joffrey
11/06/2022, 3:37 PMRBuilder -> ChildrenBuilder), but I find no migration guide. Where can I find information apart from the very succinct summary from the CHANGELOG.md?
For instance, how should I define the react entrypoint now? I used to use:
val store = initRedux()
render(rootElement) {
provider(store) {
application()
}
}
With application being an extension function on RBuilder. However I get a deprecation warning on render(), but with no ReplaceWith nor explanation about what I should use instead. Any hints?turansky
11/06/2022, 3:59 PMcreateRoot - React 18 APIJoffrey
11/06/2022, 4:00 PMprovider() function, by the way? It seems that it's defined with RBuilder receiver. Do we have a new redux API as well?turansky
11/06/2022, 4:07 PMval reduxStore = initStore()
val app = Provider.create {
store = reduxStore
Application()
}
createRoot(container)
.render(app)Joffrey
11/06/2022, 4:08 PMProvider component was available like this directlyturansky
11/06/2022, 4:09 PMprovider - just sugar, which hide real logic (like in your example)