Stateless Functional Components

Download reactjs eBook

Remarks

Stateless functional components in React are pure functions of the passed in props. These components do not rely on state and discard the use of component lifecycle methods. You may, however, still define propTypes and defaultPropts.

See https://facebook.github.io/react/docs/reusable-components.html#stateless-functions for further information about stateless functional components.

Related Examples

Stats

308 Contributors: 4
Friday, April 21, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook