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(instructions): react-hooks 02.01 #239

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

MikeRatcliffe
Copy link
Contributor

Exercise react-hooks/exercises/02.side-effects/01.problem.effects/index.tsx

The current instructions don't make sense... this patch clears things up.

Exercise `react-hooks/exercises/02.side-effects/01.problem.effects/index.tsx`

The current instructions don't make sense... this patch clears things up.
@MikeRatcliffe
Copy link
Contributor Author

Oops, it's supposed to be broken :/

@MikeRatcliffe MikeRatcliffe deleted the patch-2 branch October 12, 2024 19:04
@kentcdodds
Copy link
Member

We can still clear things up a bit by explaining that it's supposed to be broken inline if you think that would provide clarity

@MikeRatcliffe MikeRatcliffe restored the patch-2 branch October 12, 2024 20:25
> in the useEffect callback, subscribe to window's popstate event

If a dev knows how to use `useEffect()` this will look like a bug... because it is. Let's explain that this bug is supposed to be here at this point.
@MikeRatcliffe MikeRatcliffe reopened this Oct 12, 2024
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thanks!

@kentcdodds kentcdodds merged commit 3b0f2c7 into epicweb-dev:main Oct 12, 2024
4 checks passed
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.

2 participants