We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933f3a4 commit a5cc01bCopy full SHA for a5cc01b
README.md
@@ -196,7 +196,7 @@ class App extends React.Component {
196
197
afterOpenModal() {
198
// references are now sync'd and can be accessed.
199
- this.refs.subtitle.style.color = '#f00';
+ this.subtitle.style.color = '#f00';
200
}
201
202
closeModal() {
@@ -215,7 +215,7 @@ class App extends React.Component {
215
contentLabel="Example Modal"
216
>
217
218
- <h2 ref="subtitle">Hello</h2>
+ <h2 ref={subtitle => this.subtitle = subtitle}>Hello</h2>
219
<button onClick={this.closeModal}>close</button>
220
<div>I am a modal</div>
221
<form>
0 commit comments