call us for free now

Company Logo

OptimizedImage Debug Page

This page helps identify what causes the "Objects are not valid as a React child" error.

Current Test: string

Value: "/logo.png"

Type: string

OptimizedImage Component:

Test image for string

Debug Information

Check the browser console for any warnings or errors.

If you see the error "Objects are not valid as a React child", it means one of the test cases above is causing it.

Common Causes:

  • Object with src property: Instead of passing src="string", passing src={src: "string"}
  • File objects: Passing File/Blob objects directly instead of using URL.createObjectURL()
  • Array values: Passing arrays instead of the first element
  • Nested objects: Passing complex objects that contain the URL deep inside

How to Fix:

  • Always pass strings to the src prop
  • Use optional chaining safely: data?.uploads?.[0]
  • For File objects: src=URL.createObjectURL(file)
  • Check data structure before passing to component
BizareXpedition logo

Keep travelling all year round!

Subscribe to our newsletter to find travel inspiration in your inbox


*Caution: Beware of Fake Promotions or Offers *Please be cautious and do not engage with any promotional emails, SMS, or web links that ask you to click on a link and provide your personal details. All authorized communications from BizareXpedition™ Services will come exclusively from our registered domains: @bizarexpedition.com or @bizarexpedition.in. For any inquiries, you can also reach us through our official WhatsApp channel at 9897581113. *BizareXpedition™ Services is not liable for any fraudulent or misleading communications that do not originate from our official domains.



© 2014-2025 BizareXpedition™. All Rights Reserved.
India flag
OMV certification
Swastik certification
Travel affiliation badge 1
Travel affiliation badge 2
Travel affiliation badge 3
Travel affiliation badge 4
Travel affiliation badge 5
Travel affiliation badge 6
Travel affiliation badge 7