---
title: "Comment by Ndeye Fatou Diop on \"Passing icons as props in a consistent way using React\" | Hashnode"
description: "Very nice! I think though the function will run anytime the app rerenders so you may want to use React.useMemo in some cases ☺️"
url: "https://hashnode.com/posts/passing-icons-as-props-in-a-consistent-way-using-react/6043b3ca8458d42fc821b3b2/comment/6044c1cf5a56f82fa3eccae1"
---

[Discussion](https://hashnode.com/posts/passing-icons-as-props-in-a-consistent-way-using-react/6043b3ca8458d42fc821b3b2)

Comment [Passing icons as props in a consistent way using React](https://hashnode.com/posts/passing-icons-as-props-in-a-consistent-way-using-react/6043b3ca8458d42fc821b3b2)

[Ndeye Fatou Diop](https://hashnode.com/@fatou)

[Mar 7, 2021](https://hashnode.com/posts/passing-icons-as-props-in-a-consistent-way-using-react/6043b3ca8458d42fc821b3b2/comment/6044c1cf5a56f82fa3eccae1)

Very nice! I think though the function will run anytime the app rerenders so you may want to use React.useMemo in some cases ☺️

[Ozzie Neher](https://hashnode.com/@ozziexsh)

[Mar 7, 2021](https://hashnode.com/posts/passing-icons-as-props-in-a-consistent-way-using-react/6043b3ca8458d42fc821b3b2/comment/6044c1cf5a56f82fa3eccae1#reply-6045232a5a56f82fa3eccfd8)

Yes thank you that is a great point!
