From 0b49d360566aa29dc425cc75251d5cc231afd95a Mon Sep 17 00:00:00 2001 From: Vinay M Date: Thu, 26 Jan 2017 10:29:48 +0800 Subject: [PATCH] Update readme --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 233ad14..512eb05 100644 --- a/Readme.md +++ b/Readme.md @@ -68,10 +68,10 @@ module.exports = withTranslate(App) ## Translate using Context ```` -const App = (props) => { +const App = (props, context) => { return (
- {this.context.translate('hello', { name: 'John Doe' })} + {context.translate('hello', { name: 'John Doe' })}
) }