A friend of mine is working as a local mattresses retailer and asked me to help out with his website. Basically he just wanted to change the opening hours. I found an old html file on his server. This was a perfect opportunity to test out some new stuff so I redirected the domain bettenbauernfeind.de to one of my cloud servers and started to work.
Continue reading “New Website with Next.js and Strapi”Tag: react
Redux Persist with Redux Toolkit
There is a pretty handy library called redux-persist that persists the global object from the application’s redux store in the local storage. This is useful when the javascript application breaks on page reaload which happens for example all the time when developing with hot module replacement.
This article explains how to integrate this library in your web application when you are using the redux toolkit. It is an opinionated toolset for redux development that provides really good defaults and it is my prefered way to setup the redux store.
Continue reading “Redux Persist with Redux Toolkit”Higher Order Component “withToday()”
I wrote an higher order component in React to make the opening hours of a local shop more fancy. The UI emphasizes the current day with another background color. To make this happen the component needs to know which day we have so I wrap it with my hoc withToday().
Continue reading “Higher Order Component “withToday()””