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 ?
Show the code
Обсуждают сегодня