
Photo by Yoann Boyer on Unsplash Safari on iOS allows a web page to be saved to the home screen so that it can be launched like an app. This feature can be accessed for any page in…
Photo by Yoann Boyer on Unsplash Safari on iOS allows a web page to be saved to the home screen so that it can be launched like an app. This feature can be accessed for any page in…
Photo by Ankush Minda on Unsplash Ref: https://medium.com/@jacoboakley/deploy-a-next-js-app-on-heroku-69bcb01db1b7 Make sure you add this “start” script to your package.json. Without this “start” script, when Heroku spins up your site, it won’t correctly connect you next app to the port…
Photo by Lwin Kyaw Myat on Unsplash I spent an hour yesterday trying to figure out why my React component using useState and hooks wasn’t updating when it appeared the state was updating. Ultimately the problem was that…
Photo by Timon Wanner on Unsplash Rather than using Redux or similar to manage global state (e.g. whether the user is authenticated or not), since React 16.8 you can now use hooks and context. Below is a simple…
This post is based on information on customer hooks and data fetching provided by others such as Robin Wieruch (https://www.robinwieruch.de/) and Kent Dodds (https://kentcdodds.com/blog/how-to-optimize-your-context-value). This is a customer hook to fetch energy market data from…
Photo by Jeroen den Otter on Unsplash If you use create-react-app to create react applications, there are multiple ways you can include custom fonts, such as Google Fonts such as linking to them in Google’s CDN. However, the…
Recent Comments