React 버튼 클릭 시 스크롤 이동하는 방법 (useRef) - useRef 훅을 이용 - useRef : 특정 DOM을 가리킬 때 사용하는 Hook함수 import React, { useRef } from 'react'; import styled from 'styled-components'; function App() { /* 스크롤 이동 */ const inputForm = useRef(); //특정 DOM을 가리킬 때 사용하는 Hook함수, SecondDiv에 적용 const onMoveToForm = () => { inputForm.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); }; return ( 버튼을 누르면 아래로 이동합니..