4 ms·
I would also love to see resources that detail how to separate business logic from view components. As a junior dev, I know it's the right thing to do but I'm n
by c0wboyc0ding 7y ago
I would also love to see resources that detail how to separate business logic from view components. As a junior dev, I know it's the right thing to do but I'm not sure how. Is it as simple as passing props into a utils file?
Any links would be greatly appreciated.
- parthdesai 7y agohttps://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0 https://medium.com/@dan_abramov/smart-and-dumb-components-7c...
- ep103 7y agoSo I'm aware of the difference between presentation and compositional components, but the original poster was claiming service calls shouldn't be in lifecycle methods? Abramov puts his api calls into ComponentDidMount in his egghead.io videos...
- phponpcp 7y agoThat doesn't scale after awhile. Generally the next step is putting your business logic in HOCs or Redux thunks or sagas. Now it can be dropped in hooks too.