Version #1: ES5 and Props Object

Version #2: ES6 and Props Object

Version #3: ES6 and In-Function Destructured Props

Version #4: ES6 and Destructured Props

Version #5: ES6 and Export Default Anonymous Function

Colin McNamara

Front-End Engineer, ex-investment professional

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store