Q: Why are there no lifecycle methods on stateless React components

I used to wonder why stateless components in React didn’t have lifecycle methods (componentDidMount and what have you). They have things like PropTypes, which you might not expect to be on a pure function per se. Why not lifecycle methods?

Answer: lifecycle methods inherently imply state — attributes carried across renders.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.