Skip to content

Commit 305977e

Browse files
authored
Update Readme.md
1 parent 3303caf commit 305977e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/15_Context/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const createDefaultUser = (): SessionContextProps => ({
3232
});
3333

3434
export const SessionContext =
35-
React.createContext < SessionContextProps > createDefaultUser();
35+
React.createContext < SessionContextProps >(createDefaultUser());
3636
```
3737

3838
- This session context will expose a _provider_ (it will serve us to set the login name in the context), and a _consumer_ (that will let us consume the login name from the context at any point of the application).

0 commit comments

Comments
 (0)