DEV Community

Discussion on: Optimizing React App Performance

Collapse
iamludal profile image
Ludal 🚀

Awesome post, thank you ! 🙏

Would you say that in the case of a simple application, memo and useCallback are overkill? (Since calling those methods might "take some time", in a way)

Collapse
asjadanis profile image
Asjad Anis Author

Probably yes but your profiling tools will help you judge better. Plus in simple components memo and useCallback can add unecessary complexity to the code base. If the performance gains are significant enough then definitely go for it but otherwise it doesn't make much sense.

Collapse
iamludal profile image
Ludal 🚀

Thanks for your answer! 🙌