Styled-components break react controlled forms using hooksMarch 30, 2019 at 1:51pm
I built a functional hooks component and used styled-components instead of a styles.css file. However every time I did a key press in an input field, focus was lost. After much investigation, I discovered that by reverting back to the styles.css file and abandoning styled-components, everything worked as expected. Is this a known problem when using hooks?
March 30, 2019 at 2:08pm