Skip to content

Instantly share code, notes, and snippets.

@pablorn91
Created March 13, 2022 13:35
Show Gist options
  • Save pablorn91/264889d96fe52e6521fa759b52d7a7e7 to your computer and use it in GitHub Desktop.
Save pablorn91/264889d96fe52e6521fa759b52d7a7e7 to your computer and use it in GitHub Desktop.
Crear un Hook personalizado para facilitar uso de Context
import { useContext } from "react";
import NombreContext from "../context/NombreProvider";
const useNombre = () => {
return useContext(NombreContext)
}
export default useNombre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment