Skip to content

Commit 6a4607e

Browse files
authored
Merge pull request #7 from ryanauj/rext-to-text
Change 'setRextInputValue' to 'setTextInputValue'
2 parents 16c0a19 + 44e99db commit 6a4607e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import Checkbox from './Components/Checkbox';
1515
import Radio from './Components/Radio';
1616

1717
const App = () => {
18-
const [textInputValue, setRextInputValue] = useState('Hello World');
18+
const [textInputValue, setTextInputValue] = useState('Hello World');
1919
const [selectValue, setSelectValue] = useState('grapefruit');
2020
const [numberInputValue, setNumberInputValue] = useState(0);
2121
const [checkboxValue, setCheckboxValue] = useState(true);
2222
const [radioValue, setRadioValue] = useState('small');
2323

2424
const handleTextInputChange = value => {
25-
setRextInputValue(value);
25+
setTextInputValue(value);
2626
};
2727

2828
const handleSelectChange = value => {

0 commit comments

Comments
 (0)