I got some free time while on bench, who wants some JS help

I'm on bench, this is my first post and want to help people with debugging or general help, so link push your questions
2 Replies
Lukem121
Lukem121ā€¢15mo ago
Hey! I am working on a travel website where users can search/buy plane tickets. Currently, I am facing some architectural challenges in setting up the state management for my website. Since it functions like a large form, I want to ensure that users can come back at the page at any time using the URL. Having a tough time deciding how it should work.
shiroyasha9
shiroyasha9ā€¢15mo ago
I watched this video recently, and I feel this is the best way to ensure that the user can revisit the link anytime and get to the state they were previously at - https://www.youtube.com/watch?v=ukpgxEemXsk TLDR: Use the route params for the state management, which you can then use to populate the page.
ByteGrad
YouTube
STOP using useState, instead put state in URL (in React & Next.js)
šŸ‘‰ NEW React & Next.js course released at any moment to email subscribers: https://email.bytegrad.com šŸ‘‰ Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript šŸ‘‰ Professional CSS Course: https://bytegrad.com/courses/professional-css šŸ‘‰ Discord: all my courses have a private Discord where I actively participate šŸ”” Email...
Want results from more Discord servers?
Add your server