complete-intro-to-react-v5 icon indicating copy to clipboard operation
complete-intro-to-react-v5 copied to clipboard

Rename updater functions of hooks

Open ricguti opened this issue 4 years ago • 0 comments

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.

ricguti avatar Sep 09 '20 23:09 ricguti