Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a userContext to hold the user's information #22

Open
Ajknight121 opened this issue Oct 23, 2024 · 0 comments
Open

Create a userContext to hold the user's information #22

Ajknight121 opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@Ajknight121
Copy link
Member

Use react CreateContext to create a userContext that creates and provides a user object. The user object with have the properties: username, aboutMe (string), profileIcon (as a url string), and favoriteGames (list of strings)

create the context in a new directory Domain/ and in a userContext.jsx file.

userContext provider can then wrap the entire all routes defined in the component to make the user variables available throughout the website

@dstyka2 dstyka2 self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants