react useref from another component