Basic React Hooks
· ☕ 3 min read
React Hooks are a powerful feature in React that allow developers to use state and other React features in functional components, instead of relying solely on class components. Hooks were introduced in React 16.8 and have quickly become a popular way to write reusable and easy-to-read code. In this post, we’ll explore the basics of React Hooks and learn how to use them in your applications. What are React Hooks? React Hooks are functions that allow you to use React features in functional components.

Our First Custom React Hook
· ☕ 2 min read
In this article, we will learn how to create a very simple custom React hook. For simplicity sake, the only thing the hook will do is to show an alert message when a button is clicked. In a nutshell, creating a custom hook is as simple creating a function, calling which returns something. This function, by convention, starts with use and we will call it useAlert. 1 2 3 const useAlert = () => { // return something } The hook has to return something which can be a function, an array, an object, or even a primitive values.

Unused Elastic IPs are Billable but Used Elastic IPs are free
· ☕ 2 min read
Unused Elastic IPs are Billable but Used Elastic IPs don’t cost anything. Doesn’t it seem wrong or strange to you? At least to me, it did, when I heard it for the first time. Elastic IPs Elastic IPs are permanent IP addresses that you provision from AWS console. They don’t get changed unless you delete them. When you create an EC2 instance, it is assigned a public IP address.

Getting started with Marko
· ☕ 4 min read
Marko is a JavaScript based reactive, UI-component library from eBay. It allows you to create modern web-applications in a declarative way. Launched in 2017, Marko is currently on version 5. At the time of this writing, it has 10.2K stars on GitHub. Marko allows you to create components in a single file, as well as you can choose to split the components in multiples files out-of-the-box. You can also define your components in a Jade-like concise syntax.