Cory House
Aug 24, 2017 · 1 min read

I’d suggest using #5 when you don’t need to worry about this. If you don’t, just declare a plain method since it’s more efficient. Others suggest always using #5 since you’re unlikely to notice the slight perf difference in most apps.

)

    Cory House

    Written by

    Pluralsight Author, Principal at reactjsconsulting.com, Software Architect, Microsoft MVP, Speaker, Clean Coder, Aspiring Outlier.