Untitled

mail@pastecode.io avatar
unknown
plain_text
8 days ago
323 B
1
Indexable
Never
const Tests = () => {
const[count,setcount]=useState(0)
 
  useEffect(()=>{

  setTimeout(() => {
    setcount(3)
  }, 3000);
  
  },[])


  return (
    <div className="flex justify-center items-center flex-col">
      <h1 className="text-red-300">Test Comp</h1>
      <h2>{count}</h2>
    </div>
  );
};
Leave a Comment