Thanks Dave. I'm glad you find the post useful.
I just used the destructuring approach in a Gatsby project of mine. When I first implemented it the code didn't compile, so I came back to this post and found my mistake. I had messed up the import statement. Thanks again!
We all make mistakes as devs. I'm glad the post helped you to fix it.
Oh yes. I’m more than happy to make mistakes and learn from them.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.