Skip to content

Conversation

@ricguti
Copy link

@ricguti ricguti commented Sep 9, 2020

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.

Rename using the setState convention for the updater functions of hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant