StatelessComponent<TProps> constructor

StatelessComponent<TProps>([
  1. TProps? props
])

Creates a stateless component with optional strongly-typed props.

Implementation

StatelessComponent([TProps? props]) : _props = props;