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)
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.
Awesome post, thank you ! 🙏
Would you say that in the case of a simple application,
memoanduseCallbackare overkill? (Since calling those methods might "take some time", in a way)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.
Thanks for your answer! 🙌