28Jun2022: React Client Side Routing

Written by Catt Tung on Jun 28th, 2022 Views Report Post

I literally was so focused and sucked in on coding projects today that I forgot to sit down to write!

I was basically practicing creating SPAs and the kind of “fake routing” React does with the virtual DOM rendering, re-practicing how to do routing and passing props properly.

I was also doing a lot of api endpoint testing and how to render api data onto the page with React. Good stuff - I also had an api call that wasn’t working and I tried it with async await - it works sometimes now and I literally cannot consistently reproduce it which is frustrating. I presume it’s related to the async await - I wrote it based off what I saw on the MDN docs which it worked a few times and literally without changing anything on certain refreshes it just doesn’t want to work.

I hope I’ll be able to find out what’s up tomorrow.

Catt xx

Comments (0)