Answer the question
In order to leave comments, you need to log in
How to view the state of the useState hook in the console? And how to see the state of an individual hook property?
There is a state in the hook:
const [value, setValue] = useState({
list: [],
number:1
});
const method = () => {
setValue(({
list: response.data,
});
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question