Tag: react
-
How I’m Using MSW (today, anyway)
One thing that has really changed my way of building with React is implementing tests much earlier in the development of a feature. I tend to feel almost claustrophobic working on a single laptop screen and flipping back and forth between my text editor and a browser window to see changes – this means most…
-
Testing Controlled React-Hook-Form Components
I recently ran into quite a bit of frustration attempting to test a component that wrapped a <Controller /> from React-Hook-Form. Most of my projects use MUI as the frontend component library so I’ve been getting used to “uncontrolling” my inputs with RHF by making my own set of inputs that can easily go into…
-
Adding Django-REST-Framework to Django (way after the fact)
One of my first projects in my current role was to optimize a process that involved taking a hardware design and making predictions about it. We had some old Excel sheets that would keep track of old analyses but these didn’t really enforce any structure and lots of work had to be redone each time…
-
Headers – The Source and Solution of All Problems
After working with Docker for a while and especially Docker Compose you start to take a lot of boring configuration for granted. I remember beginning web development and absolutely hating deploying projects to AWS instances because of the scary “reverse proxy” and setting up NGINX. Who knows how many times I googled “does flask need…
-
How to Find What to Watch
On and off over the last couple months I’ve been putting together a collection of fun/goofy tools that my girlfriend has asked about. As a test of my new fondness of the FARM stack, I’ve rebuilt the project in React, using FastAPI and MongoDB for the backend. It’s located at rachelscoolshit.com because I miss the…
-
How to Send File Objects from a React Frontend to Django Backend
This is probably pretty common knowledge, but after running into a relatively frustrating event at work I figured I’d do a little write up so I can just look here in the future instead of frantically googling around… I’ve finally embraced using the loader() and action() abilities of react-router-dom and while they simplify many things,…