useRef フックを利用して処理中状態を記録する
By k0rosuke
Add to