Skip to content

Commit 57aa9d7

Browse files
committed
Change preact binding error msg to debug
1 parent 54e0d54 commit 57aa9d7

File tree

1 file changed

+2
-3
lines changed
  • src/js/packages/@reactpy/client/src

1 file changed

+2
-3
lines changed

src/js/packages/@reactpy/client/src/bind.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ export async function infer_bind_from_environment() {
88
const ReactDOM = await import("react-dom/client");
99
return (node: HTMLElement) => reactjs_bind(node, React, ReactDOM);
1010
} catch {
11-
console.error(
12-
"Unknown error occurred: 'react' is missing within this ReactPy environment! \
13-
Your JavaScript components may not work as expected!",
11+
console.debug(
12+
"ReactPy will render JavaScript components using internal bindings for 'react'.",
1413
);
1514
return (node: HTMLElement) => local_preact_bind(node);
1615
}

0 commit comments

Comments
 (0)