Category

react

Custom hook for data fetching

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…

Continue Reading

Next.js and SVG images

To use SVG images inline in Next.js apps install babel-plugin-inline-react-svg add the following .babelrc file to the root of your app restart your app import SVG as react component Reference: https://github.com/flaviogranero/svg-components-example  

Continue Reading