Environment Based Themes with Dockerized React
Posted Friday, January 15, 2021.I found myself deploying a react app to different business units of my organization. Both wanted their separate colours to be used in the styling. I wanted to use the same docker image/react app and this is how I accomplished that.
Runtime Environment Variables for Dockerized React App
Posted Thursday, January 14, 2021.React apps in docker containers break 12-Factor principle due to how environment variables are baked in at build time. This is how you can can inject runtime variables into them instead.
Creating a react-bootstrap Typescript Library
Posted Tuesday, January 5, 2021.I was looking to make a React component library with the following requirements - react-bootstrap, Typescript, Sass, some sort of preview library, all from scratch and without ejecting from a CRA. I could not find a tutorial/documentation that fit all these requirements, so I put this together.