Skip to content

Commit

Permalink
fix(react): fix context react example
Browse files Browse the repository at this point in the history
  • Loading branch information
matschik authored Feb 12, 2023
1 parent a949e27 commit 92e8694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/4-component-composition/5-context/react/App.jsx
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 92e8694

Please sign in to comment.