Open stepancar opened 8 years ago
@galkinrost , what reasons to use lifecycle methods in stateless components? Can you provide any not syntetic example? As i understand, good example - usage componentDidMount for bind any plugin to Dom. Could you please share another cases?
The most popular case for us is a prefetching data for view at the componentWillMount state.
In our team we use this decorators to implement lifecycle methods for stateless components