Keeping Component Pure
Some JavaScript functions are pure functions only do calculations and nothing else. By writing your components as pure functions, you can avoid many confusing bugs and unpredictable behavior as your codebase grows. To gain thes...