ra1nbow1.hashnode.devBuilding Reliable Protected Routes with React Router v7Why You Need This Imagine your site is a hip nightclub. The main doors are open to all, but there’s a VIP area guarded by a bouncer: you need a secret pass (token) to get in. That bouncer on the front end is exactly what Protected Routes are for—keep...Jun 8, 2025·4 min read
ra1nbow1.hashnode.devHow to write the right API client in TypeScriptCreating an application is more complicated than a to-do list, most often we need to interact with some data stored on the server. These can be weather forecasts processed by a third-party API, as well as our customertyps' data, be it their login and...Jun 17, 2023·7 min read
ra1nbow1.hashnode.devUseful Built-In JavaScript Web APIsAn Application Programming Interface (API) is a software interface that allows two or more programs to communicate by acting as an intermediary between them. All browsers have a set of built-in APIs that extend their functionality, usually by support...May 7, 2023·7 min read
ra1nbow1.hashnode.dev5+5=? Converting values to a string or number in JavaScriptLet's analyze the example: var a = 5; // number var b = "5"; // string var c = a + b; alert(c); // 55 alert(typeof(c)) // string When we add 5 and 5, we expect to see the output — 10. However, we get 55 and see that the data type is not a number, b...Jun 11, 2022·2 min read
ra1nbow1.hashnode.dev8 ways to add an element to the beginning of a list and string in PythonHow to add an item to the top of a Python list: 4 methods Lists in Python are mutable and ordered data structures designed to store a group of values. If you need to insert an element in the first position of an existing list during the program execu...Jun 3, 2022·4 min read