using higher order component in react class component

36 Views Asked by At

I'm reading an old project using react class component and they use connect from react-redux like this:

@pageAntdLayout
@injectIntl    
@connect
class List extends Component {
    ....
}

Then I try to find the way using connect from react-redux, it's used like a Higher Order Component, e.g. connect(Component).

So I really wonder is this the way to using HOC in class component?

0

There are 0 best solutions below