'I can't get the value from option

I tried to get the value like this

       <select onChange={e => setPageSize(e.target.value)} name="" id="">
                        <option value="5">5</option>
                        <option value="10" defaultValue>10</option>
                        <option value="15">15</option>
                    </select>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source