Skip to content

Remove "Useful Hooks" section #617

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

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Mar 26, 2023

The only TS relevant part is that those hooks are written in TS. But there's no focus on the typing parts.

We should focus this cheatsheet on TS usage in React not React written in TS. Especially since the implementations are problematic and shouldn't be blessed (e.g. useLocalStore should probably use useSyncExternalStore, useFetch should replaced by dedicated data fetching libraries like use-query or just RSCs).

@eps1lon eps1lon requested a review from filiptammergard March 26, 2023 08:06
Copy link
Collaborator

@filiptammergard filiptammergard left a comment

Choose a reason for hiding this comment

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

Makes a lot of sense to remove!

@eps1lon eps1lon merged commit 608b33f into typescript-cheatsheets:main Mar 26, 2023
@eps1lon eps1lon deleted the remove-hooks branch March 26, 2023 13:20
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