인프런에 제로초님의 강의를 보고 정리한 내용입니다. [ 웹 게임을 만들며 배우는 React ] https://www.inflearn.com/course/web-game-react React.createRef 클래스 컴포넌트에서도 함수 컴포넌트처럼 ref를 사용할 수 있게 해줌 Class, Hooks 상관없이 current로 접근 가능함 방법은 간단함 createRef를 import해주고 input = createRef(); 원하는 태그에서 ref = {input}으로 호출해주면 된다. import React, { useState, createRef } from 'react'; const inputRef = createRef(); inputRef.current.focus(); props와 state 연결하..