Framework7 with Reactjs

I have a problem when I want to use useRef as an array with Input component. I tried many different approaches but no success!!
For example:

const refs = useRef([]);

<Input ref={(ref) => this.refs.current.push(ref)} />

I appreciate if someone can help me and show me the correct syntax.