---
title: "Comment by Prince Rajput on \"How to Create a Spotify Music Search App in React\" | Hashnode"
description: "Hey Y I want to know why do you made AppRouter as Class Component?"
url: "https://hashnode.com/posts/how-to-create-a-spotify-music-search-app-in-react/5fab7a1a621a1f57a3d06fe9/comment/62fddba40cfd6de8c7d7a1c2"
---

[Discussion](https://hashnode.com/posts/how-to-create-a-spotify-music-search-app-in-react/5fab7a1a621a1f57a3d06fe9)

Comment [How to Create a Spotify Music Search App in React](https://hashnode.com/posts/how-to-create-a-spotify-music-search-app-in-react/5fab7a1a621a1f57a3d06fe9)

[Prince Rajput](https://hashnode.com/@prince694)

[Aug 18, 2022](https://hashnode.com/posts/how-to-create-a-spotify-music-search-app-in-react/5fab7a1a621a1f57a3d06fe9/comment/62fddba40cfd6de8c7d7a1c2)

Hey [Y](https://hashnode.com/@ys121) I want to know why do you made AppRouter as Class Component?

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Aug 18, 2022](https://hashnode.com/posts/how-to-create-a-spotify-music-search-app-in-react/5fab7a1a621a1f57a3d06fe9/comment/62fddba40cfd6de8c7d7a1c2#reply-62fddc380cfd6de8c7d7a1f8)

[Prince Rajput](https://hashnode.com/@prince694) There is no reason. You can use functional component also instead of class component. It does not matter
