From 37b1ed16b38d02492b8edfd0ab09d5a7dbfa4944 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 20 Aug 2018 11:37:55 +0800 Subject: [PATCH] update LocaleProvider demo --- components/locale-provider/demo/all.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/locale-provider/demo/all.md b/components/locale-provider/demo/all.md index cdf0cb3c6e..befca63894 100644 --- a/components/locale-provider/demo/all.md +++ b/components/locale-provider/demo/all.md @@ -107,7 +107,6 @@ class Page extends React.Component { } } -let forceRerender = 0; class App extends React.Component { constructor() { super(); @@ -127,6 +126,7 @@ class App extends React.Component { } render() { + const { locale = {} } = this.state; return (
@@ -136,8 +136,8 @@ class App extends React.Component { 中文
- - + +
);