Skip to content

Instantly share code, notes, and snippets.

View Mnshawaty's full-sized avatar

mohammad alnshawaty Mnshawaty

View GitHub Profile
@Mnshawaty
Mnshawaty / page.tsx
Created February 3, 2024 06:16 — forked from tnarla/page.tsx
Valentine website
"use client";
import { useState } from "react";
export default function Page() {
const [noCount, setNoCount] = useState(0);
const [yesPressed, setYesPressed] = useState(false);
const yesButtonSize = noCount * 20 + 16;
const handleNoClick = () => {
setNoCount(noCount + 1);