This is possible using the useBetween hook.
import React, { useState } from 'react'
import { useBetween } from 'use-between';
const useShareableState = () => {
  const [username, setUsername] = useState('Abrar');
  const [count, setCount] = useState(0);
  return {
    username,
    setUsername,
    count,
    setCount
  }
}
const HookComponent =…
    
  
    
Top comments (0)