This micro blog entry is for those who: use renderHook from @testing-library/react-hooks to test their own custom hooks want to assert that the custom hook did not throw So, by instinct, one probably would do sth along this line: The reason why the above approach doesn’t work is quite obvious, if you think about it. […]Read More how to assert that your custom hook didn’t throw
In this post, I’d love to discuss a setup that’s minimal enough for me to start a TypeScript-based project.Read More minimal TypeScript project setup
Howdies, npm@5 & Node.js@8 have been one of the hotter news recently within the NodeJS community. First of all, sincere kudos to the team behind for having going out of their ways in developing and maintaining such cool products that provide us developers with so much comfort to carry on in our daily work 🙂 […]Read More Finding your build scripts break after upgrading to npm@5 / node@8?
Using Bootstrap? Most likely. Wanna apply some special rules to an element inside a grid (col-*) system within a viewport that satisfies something less than col-md but more than col-sm? @media screen and (max-width: 767px) may be your friend. If there is only one thing to come out of this, obviously the number 767. This, to remind my future self. Cheers,Read More max-width: 767px
Quick note for anyone who might run into the same issue I did. If your React – Redux – Router app suddenly stops working properly, and by that I meant, it mysteriously stops following anchor tags (<a>) or Link components (<Link>) properly (in my case the browser got redirected back to home (/#), then: make sure […]Read More React App stops working on anchor tags and Link components
With the advance of contemporary front-end philosophies and frameworks such as React and Angular and all, having a quick and painless way to get started with any HTML project (even preferably configuration-less) can be very rewarding at times.Read More Serving static HTML sites quickly with http-server
Hey guys, Recently I tried out Cordova for BlackBerry OS 7 and earlier. I know BB7 isn’t exactly a new topic, and if a “trendy” developer chooses to dig into BB this moment, they might as well just start with BB OS 10. For me, I still use an “old-generation” BlackBerry, and being able to […]Read More Developing for BlackBerry WebWorks OS7 or lower with Cordova / PhoneGap – Minor tips
Hi guys, As part of my project requirement, I have to fetch and parse videos from YouTube in a Flash website. The video player itself should be simple enough since we’ve got YouTube player (https://developers.google.com/youtube/flash_api_reference#Retrieving_video_information), but what about information such as view count, rating, etc.? The YouTube player certainly doesn’t display those statistics out of […]Read More A quick look at YouTube API 2.0 – Retrieving data for a single video