Fantastic talk, think you've hit the nail on the head as to why you would want to decouple pieces of a react component and how to reasonably compose them together! (and in a functional manner no less!)
@evolutionxbox5 жыл бұрын
I'd love to see an updated talk using React hooks.
@JacobRuizDesign6 жыл бұрын
Really enjoyed this talk. Thank you!
@LunfardoAR7 жыл бұрын
I'm kinda new to redux and got little confused at 5:08 where he calls fetch inside componentDidMount(). Shouldnt async functions go in thunk-middleware and calling actions in the process?
@meida_fpv7 жыл бұрын
Ignacio Torres that's the common "best practice" when using redux, but I think in this case he was simply trying to keep his example as simple as possible.
@frantzdae7 жыл бұрын
You won't necessarily use React together with redux. In that case data fetching could work inside a lifecycle event. Of course your code gets pretty messed when you have a complex UI. That's why redux (and friends) are a good abstraction strategies.
@anonymousBl16 жыл бұрын
Great talk! I didn't understand though how he "squashes" components (kzbin.info/www/bejne/sHXCm6iaepKVjs0m22s - 22: 22) ? when i'm using recompose i still get a lot of components. any ideas ? thanks
@adamzaczek63426 жыл бұрын
And that's how hooks came to life
@catwhisperer9118 жыл бұрын
The render method of the container class returned by fetchResource is wrong. It should return , not . Otherwise very nice presentation and thanks for sharing.