From 658c2db5cf7817c443a8a29cf78d8bf95d80bfb0 Mon Sep 17 00:00:00 2001 From: Drewbi Date: Mon, 15 Jun 2020 10:54:24 +0800 Subject: [PATCH] Update example usage --- website/docs/theme-classic.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/website/docs/theme-classic.md b/website/docs/theme-classic.md index a8dc62cc5672..2f7f41340e9d 100644 --- a/website/docs/theme-classic.md +++ b/website/docs/theme-classic.md @@ -99,9 +99,13 @@ const Example = () => { The component calling `useThemeContext` must be a child of the `Layout` component. ```jsx - - - +function ExamplePage() { + return ( + + + + ); +} ``` :::