Calculator-app with ReactJS, test with Jest, versionning git & github

Solution retrospective
Very great challenge, I found the most difficults parts come from the style, and the calculation. The style because I needed to make change through the differents components, this is why I chose useContext and make the option change throught the provider. It made me learn more about inline style and calculated style, I decided to not use styled components, I wanted to use 100% react on this challenge. About the calculation, because I didn't used eval(), cybersecurity guys say its not safe. So I have coded all with custom function, being careful about special case, float. Large scale number have been took care by Javascript, it is better cause Im not a mathematic guy (for now).
I think the algorythm can be updated for a better version. I have tryed to find a way to make font-size gone smaller when the screen was too much full of strings but I didn't succeed. I did encounter some issues while using too much useState() to manipulate mathematic, so I ended taking out to normal variable, and its been perfectly fine.
Have fun doing it, or watching my submission.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Zeteo_Xulon'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