Showing
1 changed file
with
12 additions
and
0 deletions
web/src/components/room/Canvas.tsx
0 → 100644
1 | +import React, { useCallback, useEffect, useRef, useState } from 'react'; | ||
2 | +import { Vector } from './types'; | ||
3 | + | ||
4 | +export const Canvas: React.FC = () => { | ||
5 | + const canvasRef = useRef<HTMLCanvasElement>(null); | ||
6 | + | ||
7 | + return ( | ||
8 | + <div className='mx-3 px-2 py-1 rounded shadow'> | ||
9 | + <canvas ref={canvasRef} width='512' height='384' /> | ||
10 | + </div> | ||
11 | + ); | ||
12 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment