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
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.
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...