Thanks for the perspective! I find it interesting how everyone does things differently and their reasoning behind it. I do agree with the ...props and taking advantage of the HTML element typing. I typically do it for internal UI library work.
I'd love to hear more about the separation between components that show data and components that fetch it.
How do you structure components that do data-fetching and keep state?
Do you specifically avoid any presentational elements in those?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the perspective! I find it interesting how everyone does things differently and their reasoning behind it. I do agree with the
...props
and taking advantage of the HTML element typing. I typically do it for internal UI library work.I'd love to hear more about the separation between components that show data and components that fetch it.
How do you structure components that do data-fetching and keep state?
Do you specifically avoid any presentational elements in those?