Comparing Svelte and React
&gt; writing complex React components feels more like admin; a constant worry that I&#x27;ll miss a dependency in my useEffect call and end up crashing my browser session.<p>I don&#x27;t understand this worry, but I guess that happens when you try to do everything with hooks, the way I settled in my approach is to use React components just for the view without hooks, nor lifecycle logic, just dumb components with ocasional local state (useState)<p>Then using Controller pattern, within the controller I use 4 types of hooks, 1 navigation (useHistory), 2 read global state (useSelector), 3 dispatch an action (useDispatch), 4 useEffect() to execute on props change or component mount.<p>That&#x27;s it, that&#x27;s where the realm of React and UI ends for me, everything else is in Ducks, Ducks are single file or folder per module that contains Actions, Epics (Obervables) or Sagas (generators), Reducers, initial state of store and Typescript types.<p>I really like this separation of concerns:<p>- dumb components: to worry just about the looks and local state.<p>- controllers: to worry about data in, actions out, life cycle and navigation.<p>- Ducks: Management of data fetching and global state.<p>I wrote this from the top of my head, but if anyone is interested I&#x27;m thinking about writing a demo repository and document this approach, maybe others have done it already this is not new, but practices that I&#x27;ve been collecting along the way.