I never truly understood when I should use Reacts useRef hook. It felt similar to useState, but I never really understood the difference. I also never understood when I should use forwardRef. I will explain both of these hooks and when you should use them.
I recently started to convert my React JS project to TypeScript. I wanted to share my journey in converting my project and the steps I took to get started. Here I cover a few key concepts when you convert a React JS project to TypeScript.
I recently started a new project and wanted to share how I set up my routes. I used React Router DOM to nest my routes and create a dynamic navigation bar. This post is about my journey in setting up my routes and the steps I took to get started.
Web sockets are a way to communicate between a client and a server. They are used in real-time applications like chat apps, multiplayer games, and more.
In a circular or linked list which loops, we do not have a tail. The 'last' node in the list will point to a node in the list. This algorithm will detect if this has occurred.