react-callback-after-paint-tsReact hook that runs a sideEffect when the next frame has been painted by the browser