Goal: Calculate a value once per render
Goal: Calculate a value once per render.
Mistake: Declaring a parameterless function. Why? Because then the function may be needlessly called multiple times on every render.
Solution: If a function takes no args, declare a variable instead.