I'm writing a web application Reacte. Made the text input field to a separate component Input. When you need it, prokidyvaya in the props of the state and setter state.
Write a unit test for Input. I don't know what to do with setValue, because I have a state outside the component. Help, please.
Code in an online sandbox