Locking Down your Dev Environment with Webpack DevServer and mkcertI probably don't need to try that hard to explain why it's important to make the effort to enable HTTPS on your websites. It's encrypted thereby helps to secure data that travels across the wire. This security gets you other benefits, including custo...1MDec 19, 2021 · 6 min readblog.theandrewgrass.com
How to Add Dark Mode to a React ApplicationDark user interfaces are a wonderful thing. Not only are they easier on the eyes by helping to reduce blue light exposure and reduce eye strain, they are also easier on your devices resources as less light is emitted. Believe it or not, there are ac...Dec 6, 2021 · 8 min readblog.theandrewgrass.com
Get Hooked on Writing Hooks in ReactHooks are a really popular feature of React as they allow you to simplify your component logic by doing away with complicated class-based components in favour of functional components. They make testing your applications a breeze, and also make it ea...Nov 21, 2021 · 4 min readblog.theandrewgrass.com
How To Come Up with Test Cases for Unit TestsUnit tests are an important part of the development process that help to reassure you that your code is doing what it's supposed to be doing. A unit test tests a specific "unit" (as the name implies) of your code, which in my experience ends up being...Nov 15, 2021 · 5 min readblog.theandrewgrass.com
Thieving Your Way to a Dynamic Colour Theme in ReactI always thought it was really cool how some applications were able to dynamically set the colour of components on their page based on an image that was being displayed. I wanted to get this kind of effect myself, and luckily discovered a javascript ...Nov 7, 2021 · 3 min readblog.theandrewgrass.com