mouse-scroll

HTML

Event

키보드 관련 이벤트 ( keyup )

document.addEventListener("keyup", (event: KeyboardEvent) => {
  console.log(event.keyCode);
});

React

React.cloneElement

type ReactText = string | number;
type ReactChild = ReactElement<any> | ReactText;
return React.cloneElement(child as React.ReactElement<any>, {
  width: this.props.width,
  height: this.props.height,
});

react-router-dom

history

import { RouteComponentProps } from 'react-router-dom';
interface Props extends RouteComponentProps<any> {}

const Component : React.FC<Props> = ({ history }) => ();
이런 글은 어떠신가요?