Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Type Script - React Native : Error: Objects are not valid as a React child (found: [object Date]) [duplicate]

$
0
0

I try to display the contents of hours but I get an error that is not clear to me because it just a date object.

What is the correct way to solve the following error :

״Objects are not valid as a React child (found: [object Date]). If you meant to render a collection of children, use an array instead״

hours = 2022-08-31T05:23:14.997Z<Text>{hours}</Text>

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>