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

Refactor game to use context/provider #24

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Conversation

mattgrunwald
Copy link
Collaborator

@mattgrunwald mattgrunwald commented Nov 6, 2024

This PR refactors our game to use context/provider, so many values are computed for us, which is nice. It also means that components can import state themselves, as opposed to having the props passed in. This makes refactoring less painful.

While this is a more "react" way of doing things, I do think it's harder to read if you aren't familiar with it.

Copy link

github-actions bot commented Nov 6, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://pishposh.github.io/strike-memory-game/pr-preview/pr-24/
on branch gh-pages at 2024-11-08 18:16 UTC

@mattgrunwald mattgrunwald force-pushed the mg-game-context branch 2 times, most recently from e00ef7f to a6db0e7 Compare November 6, 2024 17:29
@mattgrunwald
Copy link
Collaborator Author

I'll merge the changes form #25 before I open this back up

@mattgrunwald mattgrunwald marked this pull request as draft November 6, 2024 17:58
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

Successfully merging this pull request may close these issues.

1 participant