We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d5ce4 commit 73ba23fCopy full SHA for 73ba23f
1 file changed
examples/16-3-release-blog-post/create-ref-example.js
@@ -1,6 +1,10 @@
1
class MyComponent extends React.Component {
2
- // highlight-next-line
3
- inputRef = React.createRef();
+ constructor(props) {
+ super(props);
4
+
5
+ // highlight-next-line
6
+ this.inputRef = React.createRef();
7
+ }
8
9
render() {
10
// highlight-next-line
0 commit comments