LINQ to the rescue. For the exercise Grade School LINQ makes the code shorter and more readable (in my opinion).

Last night I did a couple more chapters in the book. I feel like I should have been done by now. Along the way I found a few more problems.

  • MomentJs is is soft-deprecated. I used DayJs instead. I couldn’t get exactly the same date format, so I just used a similar one I like.
  • More react-router problems props.location doesn’t exist. Looks like I need a useLocation effect and modify from there. I also had to change the Link format with a proper to= and state= instead of what was in the book (a to= that encapsulated a path and state).
  • I also had a typing error where I tried to update the todo with a post instead of the required put http verb.

Today I finished off the last two chapters of code and read about deploy for the remainder of the book. I also tweaked a tiny bit of CSS just so it had a left and right margin. I wanted to try running the production build react code. Got it running with python -m http.server port but only under WSL Ubuntu. I may try deploying it to my raspberry pi. I think I want to try something new tomorrow, not sure what yet.