"use client"; import { useState, useEffect } from "react"; const interestingYes = () => { const yesArray = [ "Absolutely, yes.", "Without a doubt.", "Of course.", "Definitely.", "Obviously!", "Certainly!", "Positively.", "100%", ]; return yesArray[Math.floor(Math.random() * yesArray.length)]; } export default function HomePage() { const [currentText, setCurrentText] = useState(""); useEffect(() => { setCurrentText(interestingYes() ?? "Absolutely, yes."); }, []); const handleClick = () => { setCurrentText(interestingYes() ?? "Absolutely, yes."); }; return (

{currentText}

); }