Skip to content

Instantly share code, notes, and snippets.

View Iheanacho-ai's full-sized avatar

Iheanacho Amarachi Sharon Iheanacho-ai

View GitHub Profile
View live-event-.jsx
import Head from "next/head";
import React, { useState } from "react";
import styles from "../styles/Home.module.css";
const Home = () => {
const [startTime, setStartTime] = useState(1633538276355);
const [controls, setControls] = useState(true);
const [ended, setEnded] = useState(false);
const [duration, setDuration] = useState(null);
const [playing, setPlaying] = useState(true);