how to assert that your custom hook didn’t throw

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

max-width: 767px

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

A quick look at YouTube API 2.0 – Retrieving data for a single video

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