diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx index d1061306..5cd4588c 100644 --- a/src/components/Playground.jsx +++ b/src/components/Playground.jsx @@ -39,6 +39,7 @@ export default function Playground() { const [color, setColor] = useState('#ff0000') const [textInput, setTextInput] = useState('') + const [numberInput, setNumberInput] = useState(null) const [radioInput, setRadioInput] = useState('') const [checkboxInput, setCheckboxInput] = useState([]) const [selectedValue, setSelectedValue] = useState('') @@ -48,6 +49,9 @@ export default function Playground() { useEffect(() => { console.log('textInput:', textInput) }, [textInput]) + useEffect(() => { + console.log('numberInput:', numberInput) + }, [numberInput]) useEffect(() => { console.log('radioInput:', radioInput) }, [radioInput]) @@ -161,8 +165,19 @@ export default function Playground() { > QInput TextInput DATA RESET - - + + +
+ + +