From dda5b49f452e9ef2ffada25bc7061401dca83715 Mon Sep 17 00:00:00 2001 From: Gavin Elster Date: Wed, 22 May 2019 02:22:58 +0800 Subject: [PATCH] Swap word order (#2020) Figure this was a typo --- content/docs/hooks-custom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-custom.md b/content/docs/hooks-custom.md index a252ac3f3..e8b8883a9 100644 --- a/content/docs/hooks-custom.md +++ b/content/docs/hooks-custom.md @@ -201,7 +201,7 @@ Custom Hooks offer the flexibility of sharing logic that wasn't possible in Reac Try to resist adding abstraction too early. Now that function components can do more, it's likely that the average function component in your codebase will become longer. This is normal -- don't feel like you *have to* immediately split it into Hooks. But we also encourage you to start spotting cases where a custom Hook could hide complex logic behind a simple interface, or help untangle a messy component. -For example, maybe you have a complex component that contains a lot of local state that is managed in an ad-hoc way. `useState` doesn't make centralizing the update logic any easier so might you prefer to write it as a [Redux](https://redux.js.org/) reducer: +For example, maybe you have a complex component that contains a lot of local state that is managed in an ad-hoc way. `useState` doesn't make centralizing the update logic any easier so you might prefer to write it as a [Redux](https://redux.js.org/) reducer: ```js function todosReducer(state, action) {