Andrew Clark
8c4cd65cfa
Add warnings for common root API mistakes ( #23356 )
...
For createRoot, a common mistake is to pass JSX as the second argument,
instead of calling root.render.
For hydrateRoot, a common mistake is to forget to pass children as
the second argument.
The type system will enforce correct usage, but since not everyone uses
types we'll log a helpful warning, too.
2022-02-24 10:57:37 -05:00
..
2022-02-08 21:07:26 -05:00
2020-07-10 17:23:00 +01:00
2022-02-08 21:07:26 -05:00
2022-02-08 21:07:26 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-08 21:07:26 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-01-24 09:29:18 -05:00
2022-02-08 21:07:26 -05:00
2022-01-24 09:29:18 -05:00
2022-02-08 21:07:26 -05:00
2022-02-23 19:34:24 -05:00
2021-12-21 11:58:04 -05:00
2022-01-28 13:09:28 -05:00
2022-02-24 10:57:37 -05:00
2022-02-08 21:07:26 -05:00
2022-02-08 21:07:26 -05:00
2022-02-08 21:07:26 -05:00
2022-02-08 21:07:26 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-08 21:07:26 -05:00
2022-02-24 00:23:56 -05:00
2022-02-08 21:07:26 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2021-11-01 15:02:39 -07:00
2022-02-23 19:34:24 -05:00
2022-02-23 19:34:24 -05:00
2022-02-24 01:42:22 -05:00
2022-02-23 19:34:24 -05:00
2022-02-21 01:07:41 -05:00