I updated landing.js to not use the getValue() function to set the property values, since getValue() is a recursive function, and I was concerned that it was slowing the page load down. However, when I tested locally using Lighthouse, the performance didn't appear to change. But I still think it's good to get away from the recursive function if we can just use optional chaining.
I also added an abort controller to the useEffect so that we can make sure to cancel requests on unmount.
I also switched to using BrowserRouter in App.js and added some missing keys in the jsx.
I updated landing.js to not use the getValue() function to set the property values, since getValue() is a recursive function, and I was concerned that it was slowing the page load down. However, when I tested locally using Lighthouse, the performance didn't appear to change. But I still think it's good to get away from the recursive function if we can just use optional chaining.
I also added an abort controller to the useEffect so that we can make sure to cancel requests on unmount.
I also switched to using BrowserRouter in App.js and added some missing keys in the jsx.