useContext-useRef-useState

Created with CodeSandbox