#Can not get values from controlled Select component (getting null)
5 messages · Page 1 of 1 (latest)
5 messages · Page 1 of 1 (latest)
I'm currently stuck on onChange handler - i don't know how to set values in React state. Would appreciate some help.
you need to add value={category}
for a component to be controlled, it must have two props, value and onChange
Oh..i see 😄 . i thought the problem is in onChange.