YouTube iframe API
YouTube iframe API lets developers control embedded YouTube video on a website. They can for example stop or pause the player, react on player state changes or add their own event listener. I familiarise with it with a YouTube video that’s in fact compilation of couple of songs and I beside it was an ordered…
How to reduce amount of dispatched actions in Redux
When I was beginner in using Redux to manage state in JavaScript while using React, I often dispatched unnecessary amount of actions when I could be done with just one or two. Or when I was loading initial data when user visits website, I often dispatched an action that set only specific resource. Something like…
Feathers.js makes developing RESTful and realtime apps easier
I discovered Feathers.js via Tutorialzine article that popped in my Facebook timeline, which offered 15 interesting JavaScript and CSS libraries for June 2017. Since then I’ve been toying with it for almost a week now and I’m really liking it. It has a lot of documentation to start with but I wouldn’t recommend it to…
Redirecting user back to protected page after signing (React/Redux)
In developing web applications it’s a common practice to redirect user to login page if he tries to visit protected route. It’s also cool to redirect user back to protected route after he has successfully authenticated. My approach in React/Redux is to (1) store a route endpoint in Redux state when unauthorized user attempts to…