import React from 'react' ; /**
 * Alias to `useEffect` with the intention to only run on mount/unmount.
 * Avoids the React lint errors and encodes intent.
 */ export const useMount = ( callback ) => { React . useEffect ( callback , [ ] ) ; } ; /**
 * Alias to `useLayoutEffect` with the intention to only run on mount/unmount
 * Avoids the React lint errors and encodes intent.
 */ export const useMountLayout = ( callback ) => { React . useLayoutEffect ( callback , [ ] ) ; } ;