react useref example typescript