Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Refactor setState in TodoApp #107

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mattpham
Copy link
Contributor

@mattpham mattpham commented Mar 8, 2019

  • Refactored setState function calls in TodoApp to use a state change function instead of state object as per React conventions.

  • Also added some clarifications in 1-07 excercise readme and removed a line that's no longer applicable

@micahgodbolt
Copy link
Member

@kenotron take a peak. this is a pretty big rewrite of the todo app logic. curious if you have a preference on how this is presented, as we don't dig into it too deep during class.


4. Call `_onAdd` from the submit button
4. Assign `_onAdd` as the `onClick` event handler for the submit button.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes more sense 👍

@micahgodbolt
Copy link
Member

would love to dive back into this and use hooks. Even better than class based state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants