Is useEffect better for performance than changing a value directly in onChange?
If I have two select controls, one which is dependant on the other, so that if I change selectA value, selectB value will be selected depending on it: ... const [values, setValues] = useState({ selectA: undefined, selectB: undefined }); const…