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