DEV Community

Discussion on: React: how to dynamically sort an array of objects using the dropdown (with React Hooks)

ramonak profile image
Katsiaryna (Kate) Lupachova Author

yes, of course, it's totally possible. Just pass initial data and and sort type as a props to this component. The exact implementation depends on your use case.