In Framework v5 I used Toggle like this
const toggleRef = React.useRef<F7Toggle>();
...
toggleRef.current?.f7Toggle?.toggle()
But now toggle() is undefined.
Should I refactor it with using React.useState() or there is still way to call .toggle() ?
In documentation Toggle React Component | Framework7 React Documentation this method exist, but how use It?