CI&T interview question

When we use some React JS hooks?