In React, when we notice lines of code repeating, it's often a sign that we should refactor them into a function. Similarly, React's standard library doesn't cover every use case, so we can create our own functions, just like we can create our own cu...