【发布时间】:2020-06-03 23:20:05
【问题描述】:
我正在尝试使用 toDate() 方法显示 Firebase 时间戳,但我不断收到此信息
timestamp error
Error: Objects are not valid as a React child (found: Thu Feb 13 2020 12:00:00 GMT-0800 (Pacific Standard Time)). If you meant to render a collection of children, use an array instead.
但是,当我抛出 debugger 时,我可以使用 note.createdAt.toDate() 通过 console 得到它
如何在网页上很好地展示它?
【问题讨论】:
标签: reactjs firebase timestamp