diff --git a/packages/fiber/src/core/renderer.ts b/packages/fiber/src/core/renderer.ts index 3149eae9d5..45d5c55cc9 100644 --- a/packages/fiber/src/core/renderer.ts +++ b/packages/fiber/src/core/renderer.ts @@ -301,9 +301,8 @@ function createRenderer(_roots: Map, _getEventPriority?: }) } - // Don't handle text instances, warn on undefined behavior - const handleTextInstance = () => - console.warn('Text is not allowed in the R3F tree! This could be stray whitespace or characters.') + // Don't handle text instances, make it no-op + const handleTextInstance = () => {} const reconciler = Reconciler< HostConfig['type'],