setup build process

This commit is contained in:
2025-02-05 20:22:35 -05:00
parent c24861866b
commit b6c6d76354
3 changed files with 16 additions and 9 deletions
+4 -1
View File
@@ -20,8 +20,11 @@ export default function Header({
"where else would you rather be..",
"..than right here, right now?!"
]
const [ quote, setQuote ] = useState<string>(quoteArray[Math.floor(Math.random() * quoteArray.length)]);
const [ quote, setQuote ] = useState<string>(quoteArray[0]);
useEffect(() => {
setQuote(quoteArray[Math.floor(Math.random() * quoteArray.length)])
}, [])
const drawNewQuote = () => {
const newQuote = quoteArray[Math.floor(Math.random() * quoteArray.length)]