Skip to content

Instantly share code, notes, and snippets.

@woodRock
Created July 31, 2020 02:43
Show Gist options
  • Save woodRock/084da6a7a2d0195ee750904dacbe6756 to your computer and use it in GitHub Desktop.
Save woodRock/084da6a7a2d0195ee750904dacbe6756 to your computer and use it in GitHub Desktop.
Usage for a React Context
import { useContext } from "./context";
const Example = () => {
const [thing] = useContext();
return (
<>
{thing}
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment