We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3e536 commit 38dfc8dCopy full SHA for 38dfc8d
README.md
@@ -176,7 +176,7 @@ class App extends React.Component {
176
177
afterOpenModal() {
178
// references are now sync'd and can be accessed.
179
- this.refs.subtitle.style.color = '#f00';
+ this.subtitle.style.color = '#f00';
180
}
181
182
closeModal() {
@@ -195,7 +195,7 @@ class App extends React.Component {
195
contentLabel="Example Modal"
196
>
197
198
- <h2 ref="subtitle">Hello</h2>
+ <h2 ref={subtitle => this.subtitle = subtitle}>Hello</h2>
199
<button onClick={this.closeModal}>close</button>
200
<div>I am a modal</div>
201
<form>
0 commit comments