4 ms·
100% this person is misusing composition. Especially in the React Component sense. There seems to be some key details of React missing from the original posters
by zarathustreal 5y ago
100% this person is misusing composition. Especially in the React Component sense. There seems to be some key details of React missing from the original posters' understanding, and I highly recommend anyone reading this to look into functional programming to understand what a React component is and does and how to build higher-level abstractions like the one(s) mentioned by this original poster the correct way. Higher-order functions and a real state management library are the obvious solutions to these problems