Skip to content

Commit 3e6acb2

Browse files
authored
Change "current.value" to use new ref syntax
1 parent 2303f82 commit 3e6acb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stepped-solutions/Finished App/src/components/StorePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StorePicker extends React.Component {
1212
// 1. Stop the form from submitting
1313
event.preventDefault();
1414
// 2. get the text from that input
15-
const storeName = this.myInput.value.value;
15+
const storeName = this.myInput.current.value;
1616
// 3. Change the page to /store/whatever-they-entered
1717
this.props.history.push(`/store/${storeName}`);
1818
};

0 commit comments

Comments
 (0)