algolia/react-element-to-jsx-string

invalid Date object throws RangeError: Invalid time value

ttoohey opened this issue · 1 comments

the following example throws an error

reactElementToJSXString(<div foo={new Date(NaN)} />)
 RangeError: Invalid time value
 at Date.toISOString (<anonymous>)

Thanks for your PR !