I use Gatsby to create a little website. Now I have a fairly simple question:
How can I prevent certain components or statements from rehydrating? For example, how could I insert a generation date time into the footer, which stays static?
import * as React from 'react'
interface FooterProps {
className?: string
}
const Footer: React.FC<FooterProps> = ({ className }) => <footer className={className}>{new Date().toISOString()}</footer>
export default Footer
Unfortunately the displayed time is always up to date and not the time when the page was generated.
Thank you in advance!