-
Notifications
You must be signed in to change notification settings - Fork 39
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
Project-Labyrinth #12
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job with this project! You implemented Zustand in a good way 🚀
<> | ||
{/* <BrowserRouter> */} | ||
<div> | ||
{!username && <Username />} | ||
{username && <StartGame />} | ||
</div> | ||
|
||
{/* <Routes>{routes}</Routes> | ||
</BrowserRouter> */} | ||
</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused code and the fragment and just wrap everything in a div for cleaner code
<input | ||
type='text' | ||
value={usernameInput} | ||
onChange={(e) => setUsernameInput(e.target.value)} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't want to allow empty inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and structured store 👍
setUsername: (username) => set({ username }), | ||
setGameInfo: (data) => set({ gameInfo: data }), | ||
setToggleClick: () => { | ||
console.log("clicked ") //just testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.logs in production
if (loading) { | ||
return ( | ||
<Lottie | ||
animationData={Loading} | ||
loop={true} | ||
/> | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Liking this! Very labyrinthy 😏
Netlify link
https://fun-maze.netlify.app/
Collaborators
[ohitsnathalie, trista1987]