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

Translate Hooks FAQ #145

Merged
merged 13 commits into from Dec 14, 2019
Merged

Translate Hooks FAQ #145

merged 13 commits into from Dec 14, 2019

Conversation

GasimGasimzada
Copy link
Collaborator

@GasimGasimzada GasimGasimzada commented Nov 14, 2019

  • Overview
  • Adoption Strategy
    • Which versions of React include Hooks?
    • Do I need to rewrite all my class components?
    • What can I do with Hooks that I couldn’t with classes?
    • How much of my React knowledge stays relevant?
    • Should I use Hooks, classes, or a mix of both?
    • Do Hooks cover all use cases for classes?
    • Do Hooks replace render props and higher-order components?
    • What do Hooks mean for popular APIs like Redux connect() and React Router?
    • Do Hooks work with static typing?
    • How to test components that use Hooks?
    • What exactly do the lint rules enforce?
  • From Classes to Hooks
    • How do lifecycle methods correspond to Hooks?
    • How can I do data fetching with Hooks?
    • Is there something like instance variables?
    • Should I use one or many state variables?
    • Can I run an effect only on updates?
    • How to get the previous props or state?
    • Why am I seeing stale props or state inside my function?
    • How do I implement getDerivedStateFromProps?
    • Is there something like forceUpdate?
    • Can I make a ref to a function component?
    • How can I measure a DOM node?
    • What does const [thing, setThing] = useState() mean?
  • Performance Optimizations
    • Can I skip an effect on updates?
    • Is it safe to omit functions from the list of dependencies?
    • What can I do if my effect dependencies change too often?
    • How do I implement shouldComponentUpdate?
    • How to memoize calculations?
    • How to create expensive objects lazily?
    • Are Hooks slow because of creating functions in render?
    • How to avoid passing callbacks down?
    • How to read an often-changing value from useCallback?
  • Under the Hood
    • How does React associate Hook calls with components?
    • What is the prior art for Hooks?

https://deploy-preview-145--az-reactjs.netlify.com/docs/hooks-faq.html

@GasimGasimzada GasimGasimzada added draft new page Translate a new page labels Nov 14, 2019
@GasimGasimzada GasimGasimzada added this to the Hooks milestone Nov 14, 2019
@GasimGasimzada GasimGasimzada changed the title Translate Hooks FAQ Intro Translate Hooks FAQ Nov 14, 2019
@tesseralis tesseralis mentioned this pull request Nov 14, 2019
99 tasks
@netlify
Copy link

netlify bot commented Nov 14, 2019

Deploy preview for az-reactjs ready!

Built with commit c62d4f6

https://deploy-preview-145--az-reactjs.netlify.com

@GasimGasimzada GasimGasimzada merged commit a34efe4 into master Dec 14, 2019
@GasimGasimzada GasimGasimzada deleted the translate-hooks-faq branch December 14, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review +1 new page Translate a new page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants