摘要:
Previously, we wrote the Provider component by ourself: class Provider extends Component { getChildContext() { return { store: this.props.store }; } r 阅读全文
摘要:
We have to write a lot of boiler plate code to pass this chore down as a prop. But there is another way, using the advanced React feature called conte 阅读全文
摘要:
n the previous lessons, we used this tool to up level variable to refer to the Redux chore. The components that access this chore, such as the contain 阅读全文
摘要:
Our application was able to produce write effects, through sinks, and was able to receive read effects, through the DOM sources. However, the main fun 阅读全文
摘要:
Clean TodoApp Component, it doesn't need to receive any props from the top level component: const TodoApp = () => ( <div> <AddTodo /> <VisibleTodoList 阅读全文
摘要:
The CSS :not() selector allows us to exclude a subset of elements matched by our selector. In this example we refactor two selectors down to one using 阅读全文
摘要:
So far we only had effects that write something to the external world, we are not yet reading anything from the external world into our app. This less 阅读全文