Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import UserContext from "../UserContext";
import {useContext} from "react";
function ContextChild() {
const user = useContext(UserContext);
return (
<div>
<div>context child</div>
<pre>
{JSON.stringify(user)}
</pre>
</div>)
}
export default ContextChild;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment