repo_description: An open source collection of animated, interactive & fully customizable React components for building memorable websites.
repo_topics: 3d animations component-library components components-library components-react css-animations javascript react react-components reactjs tailwind tailwindcss ui-components ui-library web
code: import { useState, useCallback } from 'react';
  
  const useForceRerender = () => {
    const [key, setKey] = useState(0);
  
    const forceRerender = useCallback(() => {
      setKey(prevKey => prevKey + 1);
    }, []);
  
    return [key, forceRerender];
  };
  
  export default useForceRerender;
  