@TedJenkler
Posted
Hi @MikDra1,
Nice project! I’m planning to do this one myself soon. I noticed that you can use a dot (.) before any number is entered.
As an extra improvement, I’d recommend adding a useRef to make the buttons controllable with arrow keys. This would make the project more accessible and even more impressive.
Hope this was helpful!
Best, Teodor
Marked as helpful
@MikDra1
Posted
@TedJenkler
Dot is perfectly fine. If you write dot as a first value the JS will assume that you want zero before it ☺️
As you can see in the code I’m not using React, but I am planning to do this project soon in React. Maybe then I will use your advice.
@TedJenkler
Posted
@MikDra1: My bad—I only checked the responsiveness and functionality. It's still possible to do with key event listeners and DOM manipulation, but it’s much harder.
Have a nice day / Teodor