From a5cc01bd27d8c7eceaaa68564ce9dc5dc0eb4623 Mon Sep 17 00:00:00 2001 From: CodinCat Date: Fri, 21 Apr 2017 14:53:56 +0800 Subject: [PATCH] Use callback ref in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7a08339..d98ab588 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ class App extends React.Component { afterOpenModal() { // references are now sync'd and can be accessed. - this.refs.subtitle.style.color = '#f00'; + this.subtitle.style.color = '#f00'; } closeModal() { @@ -215,7 +215,7 @@ class App extends React.Component { contentLabel="Example Modal" > -

Hello

+

this.subtitle = subtitle}>Hello

I am a modal