Looking for code Review React Hook + Componenet
I have been exploring making reusble hooks and components that exposes variables. I have feeling there is probably a better way but this is what i came up with. I created a faculty filter.
https://artnos.github.io/react_faculty/
The way I write this hook + component is like this
Here is two files showing how it works
https://github.com/artnos/react_faculty/blob/main/src/components/hooks/useSearch.tsx
https://github.com/artnos/react_faculty/blob/main/src/App.tsx
Here is the repo
https://github.com/artnos/react_faculty
I'm new to typescript so any tips welcomed. I was just trying to get rid of all the red.
Also if there is something that goes against performance.
Thank you for viewing.
Posted May 10, 2024, 6:54 PM UTC
531