Recursive functions are extremely useful for many things in JavaScript. In React, you might want to traverse through all the children of a higher order component, even nested ones. There's many valid use-cases for these functions.
Last week I realized that I needed to recursively call a promise and eventually resolve at an unknown point. Why? In this cas…
