When should I choose loops over recursion

Just tried using recursion to populate a div in react and it said “too much recursion”.

It got me wondering about the drawbacks of recursion vs loops.

Read the article by visiting the link below.

When to loop? When to recurse? by Faith Chikwekwe