Learn how to avoid the boilerplate of passing the props down the intermediate components by introducing more container components.
These videos deserve a Nobel. I've never experienced anything taught so well.
Hi Dan, I am wondering on store.subscribe()
to VisibleTodoList
and FilterLink
container components. so do they render same time whenever store changes? like in async way?
how to use forceUpdate in React hooks ?
You have a lot of components in one file. In real world use would you separate each component to its own file?
@Michael The amount of components in one file in the lesson above is definitely extreme. File/component structure will largely depend on your team preferences and isn't strictly 1-to-1 on component to file.
In Build A React App With Redux, Andy structures his app in a more common pattern though you'll notice that for something like a TodoList
he'll define a TodoItem
inline.