@ailenglassmamSubmitted over 1 year ago
For the creation of the project I used Vite + React and for the styles I used Tailwind.
The project was divided into components. The useState hook was used to change the state when calculating the age.
Something interesting was understanding how to handle states between parent and child components.
Problems: when entering the year of birth, it only calculates when a 2-digit year is entered and not a 4-digit year. I couldn't find a solution to this problem.
Any suggestion is welcome !