complete-intro-to-react-v5
complete-intro-to-react-v5 copied to clipboard
Rename updater functions of hooks
Hi 👋
Thank you for the course, it's great!
This PR renames the updater functions of hooks using the setState convention. I was reading the notes and saw that the updater functions are written in the form updateState
.
On the code of SearchParams.js
, the pets hook is written in the form const [pets, setPets] = useState([]);
. I though maybe the other hooks could be written like that.