DEV Community

Discussion on: Using React.useMemo for optimization and logic reuse

Collapse
r0zar profile image
Ross Ragsdale

Well put! Enjoyed the examples a lot. It really made it clear how you explained useMemo within the use-case of reusable template logic. That really clicked with me. That was something that existed in angularjs as "filters" as well, but didn't realize until your post that useMemo is the React equivilent.

Collapse
igbominadeveloper profile image
Favour Afolayan Author

Thanks @r0zar . I am glad you found it useful.
Fun fact: I wrote a draft for this article about 3 months ago but I couldn't get it out because I didn't know that useMemo could be used to get this functionality in React. These weekly goals are lit