From 497de676532ede6df6d7ae7f23c4c6f9680c42d4 Mon Sep 17 00:00:00 2001 From: Philip Jackson Date: Sat, 27 Oct 2018 05:10:24 +1300 Subject: [PATCH] Update hooks-reference.md (#1315) Fix internal hyperlinks --- content/docs/hooks-reference.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 034feb41..7405d9bd 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -175,9 +175,9 @@ The following Hooks are either variants of the basic ones from the previous sect const [state, dispatch] = useReducer(reducer, initialState); ``` -An alternative to [`useState`](https://our.intern.facebook.com/intern/wiki/React_Hooks/#usestate). Accepts a reducer of type `(state, action) => newState`, and returns the current state paired with a `dispatch` method. (If you're familiar with Redux, you already know how this works.) +An alternative to [`useState`](#usestate). Accepts a reducer of type `(state, action) => newState`, and returns the current state paired with a `dispatch` method. (If you're familiar with Redux, you already know how this works.) -Here's the counter example from the [`useState`](https://our.intern.facebook.com/intern/wiki/React_Hooks/#usestate) section, rewritten to use a reducer: +Here's the counter example from the [`useState`](#usestate) section, rewritten to use a reducer: ```js const initialState = {count: 0}; @@ -355,4 +355,4 @@ Prefer the standard `useEffect` when possible to avoid blocking visual updates. > Tip > -> If you're migrating code from a class component, `useLayoutEffect` fires in the same phase as `componentDidMount` and `componentDidUpdate`, so if you're unsure of which effect Hook to use, it's probably the least risky. \ No newline at end of file +> If you're migrating code from a class component, `useLayoutEffect` fires in the same phase as `componentDidMount` and `componentDidUpdate`, so if you're unsure of which effect Hook to use, it's probably the least risky.