KelvinQiu

Results 3 comments of KelvinQiu

HaHa~, it's my mistake! Here is the doc about the return value. > Returns a DOMHighResTimeStamp, which is a floating-point value providing an estimate of **the number of milliseconds remaining...

[Solution in the Next.js doc](https://nextjs.org/docs/messages/react-hydration-error#solution-1-using-useeffect-to-run-on-the-client-only) ```js 'use client' import { useState, useEffect } from 'react' export default function App() { const [isClient, setIsClient] = useState(false) useEffect(() => { setIsClient(true) },...

[Solution in the Next.js doc](https://nextjs.org/docs/messages/react-hydration-error#solution-1-using-useeffect-to-run-on-the-client-only) ```js 'use client' import { useState, useEffect } from 'react' export default function App() { const [isClient, setIsClient] = useState(false) useEffect(() => { setIsClient(true) },...