import * as React from 'react' ; import { noop } from '../utils' ; const { useEffect } = React ; param callback function useLogger ( callback = noop ) { useEffect ( ( ) => { callback ( ) ; } , [ ] ) ; } export default useLogger ;