Skip to content

Instantly share code, notes, and snippets.

View tarunsharma19's full-sized avatar
🏠
Working from home

Tarun Sharma tarunsharma19

🏠
Working from home
View GitHub Profile
@tarunsharma19
tarunsharma19 / react-code-sample
Created October 8, 2022 11:35
It's the main game file which handles all the sockets and game states. Full repo is public on my github @ https://github.com/TarunWebdev/teztris
import React, { useContext, useState , useEffect, useCallback} from 'react'
import styled from 'styled-components';
import bgImage from '../img/landingBg.webp';
import tezLogo from '../img/tezlogo.png'
import tezTris from '../img/tezTris.png'
import {TextField } from '@mui/material';
import Backdrop from '@mui/material/Backdrop';
import Box from '@mui/material/Box';
import Modal from '@mui/material/Modal';
import Fade from '@mui/material/Fade';