diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index 5d61a32..12c1f7f 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -1,10 +1,22 @@ -import React from "react"; +import React,{useEffect,useRef} from "react"; import "./Home.css"; import IMG from "../../assets/logo.svg"; import Title from "../../assets/title.png"; const Home = () => { + + const vidRef = useRef(null); + + useEffect(()=>{ + handlePlayVideo(); + },[]) + const handlePlayVideo = () => { + vidRef.current.play(); + } + + return (
+
@@ -23,14 +35,16 @@ const Home = () => {
- Muted Video -
- - {/* */} - {/*

1-2 April

*/} -
+
); };