UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

8 lines (7 loc) 212 B
import { useState, useCallback } from 'react'; export const useRerender = () => { const [_count, setCount] = useState(0); return useCallback(() => { setCount((count) => count + 1); }, []); };