What's the difference in this app if createRoot
is introduced?
#89
shrutikapoor08
started this conversation in
Q&A
Replies: 1 comment 1 reply
-
I'd say the redesign of the root API might seem more important than it really is. I followed up with some more rationale for why it's changed in the other thread. But it's not important. It's just an opportunity to clean it up at the same time as switching "modes". For a single root app it's not much of a difference at the API level. It's just switching the whole tree to the new mode. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question from this discussion -
I see that in the update phase, it is useful to have access to
root
to avoid passing the container again. I am not able to relate to this example, maybe because I haven't had the need to pass the container on update. I am trying to understand what would be the difference ifcreateRoot
was introduced in the following app -index.html
index.js
App.js
Am I missing something?
Codesandbox link
Beta Was this translation helpful? Give feedback.
All reactions