with useState
with useRef