gealsanchez / mathMagicians

mathMagicians
MIT License
0 stars 1 forks source link

Why use functional components #4

Open gealsanchez opened 1 year ago

gealsanchez commented 1 year ago

Stateless components simply accept data and display them, hooks are used in functional components to make them Stateful. Functional components require less code, are stateless and will accept any type of data (props). A functional component is just a plain JavaScript pure function that accepts props as an argument and returns a React element(JSX). Anything that can be done using class components can also be done using functional components.

AnselemOdims commented 1 year ago

Hi @gealsanchez 🙋‍♀️,

Good job implementing all the project requirements for this milestone/project.

STATUS APPROVED ✔

Your project is complete! There is nothing else to say other than... it's time to merge it 🔗 🚢 Congratulations! 🎉

Optional suggestions

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

Cheers 🥂 and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear. Use the tag @AnselemOdims for a quicker reply

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.