Hello guys, i have a react doubt
I have an input field, which is a controlled component.
(Ie. The value is linked to state ).
User can either type in input field, or an external api can give value of the input field.
Now , based on this input field i want to change other states .
So i have 2 doubts :-
1. Is it fine to change the input bith externally by api , and also via the input using controller components ?
2. When i set the input state, in useEffect, i call all other state changes based on the new input state, but the UI does not rerender,
What could the issue be ?
Jan 17, 2022, 2:27 AM
Show the code
Jan 17, 2022, 3:31 AM