From c399f77a694840a6a45976a3c13b639c851e9597 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 18 Nov 2019 09:19:40 -0600 Subject: [PATCH] [FIX] useSSR - remove redundant code Remove redundant code from bottom of snippet, given that it also appears in its example (and relates more to the example/usage than the setup). --- snippets/useSSR.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/snippets/useSSR.md b/snippets/useSSR.md index 8be6af90d..355f63b81 100644 --- a/snippets/useSSR.md +++ b/snippets/useSSR.md @@ -38,12 +38,6 @@ const useSSR = (callback, delay) => { return React.useMemo(() => Object.assign(Object.values(useSSRObject), useSSRObject), [inBrowser]); }; - -const SSRChecker = props => { - let { isBrowser, isServer } = useSSR(); - - return

{ isBrowser ? 'Running on browser' : 'Running on server' }

; -}; ``` ```jsx