Skip to content

Commit

Permalink
circumvent flow
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Dec 7, 2021
1 parent ea169ca commit 7eb0aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/client/ReactDOMRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function createRoot(
let identifierPrefix = '';
if (options !== null && options !== undefined) {
if (__DEV__) {
if (options.hydrate) {
if ((options: any).hydrate) {
console.warn(
'hydrate through createRoot is deprecated. Use ReactDOM.hydrateRoot(container, <App />) instead.',
);
Expand Down

0 comments on commit 7eb0aba

Please sign in to comment.