Skip to content

Instantly share code, notes, and snippets.

@marciobarrios
Created June 19, 2019 14:28
Show Gist options
  • Save marciobarrios/b5b40ad17fd180bb44e667f99b545973 to your computer and use it in GitHub Desktop.
Save marciobarrios/b5b40ad17fd180bb44e667f99b545973 to your computer and use it in GitHub Desktop.
import { useEffect } from "react"
export const useMount = fn => useEffect(fn, [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment