Creating Stateless Function Components
Constructing a React component without calling React.createClass()
is typically referred to as a stateless function component.
The code example below demonstrates a stateless function component making use of and .defaultProps
.