Overnap

Canvas 컴포넌트 추가

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