Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/setstate test #18239

Closed
wants to merge 2 commits into from
Closed

Fix/setstate test #18239

wants to merge 2 commits into from

Conversation

u1001932
Copy link

@u1001932 u1001932 commented Oct 2, 2018

Pre-Submission Checklist

  • Your pull request targets the staging branch of freeCodeCamp.
  • [v] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
  • [v] You have only one commit (if not, squash them into one commit).
  • [v] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

  • [v] Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Add new translation (feature adding new translations)

Checklist:

  • Tested changes locally.
  • [v] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #18084

Description

Add test for this.setState. Requires a function to be passed to setState when a previous state is used to determine the next state, per React guideline.

test requiring a function to be passed as a param to this.setState when a previous state is used to
determine a new state, per React guideline.

ISSUES CLOSED: #18084
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