[change] React 18 support

* Support React 18 concurrency and constraints.
* Add new render / hydrate functions.
* Remove uses of findNodeHandle.
* Expose ability to unmount an application once ran.

Fix #1529
Close #2330
This commit is contained in:
Eddie Kimmel
2023-03-20 12:25:10 -07:00
committed by Nicolas Gallagher
parent 3a024ee308
commit 9868738604
35 changed files with 10712 additions and 6926 deletions
@@ -69,6 +69,10 @@ If the client should hydrate server-rendered HTML.
The initial props passed to the root component.
{% endcall %}
{% call macro.prop('mode', '"concurrent" | "legacy"') %}
Default is 'concurrent'. Setting to 'legacy' will make the app will behave as if it’s running React 17.
{% endcall %}
{% call macro.prop('rootTag', 'HTMLElement') %}
The native element into which the application is rendered.
{% endcall %}