Thanks for the great write-up! I very much agree with your opinion on classes vs functions for presentational components. Presentational components often need view helpers that don't really have their place in a container (formatting a date, for example), but are too long to simply inline in the render method. When I need helpers, I resort to using classes. Any idea what we're supposed to do about this with functional components?
Comment
Thanks for the great write-up! I very much agree with your opinion on classes vs functions for presentational components. Presentational components often need view helpers that don't really have their place in a container (formatting a date, for example), but are too long to simply inline in the render method. When I need helpers, I resort to using classes. Any idea what we're supposed to do about this with functional components?