4 Challenges I Solved While Building a Shape Drawer Date: 8/4/2026 Today, I made a shape drawer project using React.js. 😊 This project is not for a resume or showcase. It is a project to build your logical thinking and to practice React syntax and logic. 🤔 In this project, I faced: 1. How to draw shapes based upon user clicks. 👉 For this problem, I learned what the getBoundingClientRect() function is. 2. How to achieve undo and redo functionality. 👉 For this problem, I used an undo stack and a redo stack, similar to a LIFO structure. 3. How to handle disabled buttons for both undo and redo. 👉 For this problem, I learned dynamic CSS styling. 4. How to get values for draw type, draw background color, and draw sizes. 👉 For this problem, I again used dynamic CSS styling based upon state. I did not only face these problems; I also created many states, performed CRUD operations, and handled app crashes. If you want to improve your logic and are not focused on UI, then I highly recommend you make this project. 🤔 I think this is a better way to improve your logic than only giving your entire time to LeetCode. Github repo - https://lnkd.in/gyextzCi #ReactJS #WebDevelopment #CodingJourney #JavaScript #FrontendDeveloper #ProgrammingLogic #100DaysOfCode #BuildInPublic #DeveloperCommunity #CodeNewbie #LogicBuilding #Frontend

To view or add a comment, sign in

Explore content categories