Dan Abramov 1/26/2019

Why Isn’t X a Hook?

Read Original

This React deep-dive article addresses why some APIs, such as React.memo and Context.Provider, are not implemented as Hooks. It explains that making them Hooks would violate key principles of composition and debugging, which are essential for custom Hooks to work without conflicts and for errors to be easily traceable.

Why Isn’t X a Hook?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet