Browse Source

Formatted example

main
Brian Vaughn 7 years ago
parent
commit
ab62e88e27
  1. 9
      examples/16-3-release-blog-create-ref.js

9
examples/16-3-release-blog-create-ref.js

@ -3,13 +3,8 @@ class MyComponent extends React.Component {
divRef = React.createRef();
render() {
// highlight-range{4}
return (
<input
type="text"
ref={this.divRef}
/>
);
// highlight-next-line
return <input type="text" ref={this.divRef} />;
}
componentDidMount() {

Loading…
Cancel
Save