Tip Calculator App using React, TypeScript and TailwindCSS

Solution retrospective
This is my second frontend project using React
with TypeScript
, in which, I learned how to properly type React Components
that can be reusable, for example:
export default function Button({ ...props }: ButtonHTMLAttributes<HTMLButtonElement>)
as well as being my first React + TS project I learned how to implement a strongly typed React Context API
and assert
its types
with a custom hook
to validate it is an actual Context
that's going to be used.
Some of my challenges are strongly linked to the things I'm proud of about this project, which are learning how to properly create reusable components with React
and TailwindCSS
and strongly typed with TypeScript
, as well as understanding how React Context API
is typed and implemented with TypeScript
.
As I've probably commented in previous solutions, my code isn't free of having flaws, but flaws help us improve and create better code for future projects or solutions here in Frontend Mentor
. So, feel free to have a look at my code and leave suggestions of what can be changed, modified or improved.
PS: Shrink the tab's size to 80% to see the proper measures of the solution, that'll be corrected in a next occasion.
Thanks for taking the time to read everything and happy coding, frontend dev! :D
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on RamssC's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord