From 92e86944c1df9bbb9f6d03a0eb1443913e592790 Mon Sep 17 00:00:00 2001 From: Mathieu Schimmerling Date: Sun, 12 Feb 2023 10:40:56 +0100 Subject: [PATCH] fix(react): fix context react example --- content/4-component-composition/5-context/react/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/4-component-composition/5-context/react/App.jsx b/content/4-component-composition/5-context/react/App.jsx index 9469aa8f..dee7d03a 100644 --- a/content/4-component-composition/5-context/react/App.jsx +++ b/content/4-component-composition/5-context/react/App.jsx @@ -1,7 +1,7 @@ import { useState, createContext } from "react"; import UserProfile from "./UserProfile"; -const UserContext = createContext(); +export const UserContext = createContext(); export default function App() { // In a real app, you would fetch the user data from an API