- A higher order component is exactly what it sounds like — it is the React component equivalent of a higher order function.
- In React, a higher order component is a function that accepts a component and returns an enhanced component with superhero abilities.
- A simple example of a higher order function in Haskell that takes a function and applies it twice to something.
- , connect() is, through mapDispatchToProps() , subscribing the TodoList component to a change handler that will toggle a todo when the todo is clicked.
- Well, arguably, one of the key concepts when using Redux with React lies in a higher order component: connect() .
Read the full article, click here.
@ReactiveConf: “Redux, immutability, and higher order components: #ReactJS”
Redux, Immutability, and Higher Order Components