|
|
|
|
|
by arenaninja
3150 days ago
|
|
My biggest issue with HOCs is the hard time you have when things are nested to high hell. A component like withThis(withThat(enrich(withState(withPropsOnChange(withPropsOnChange(withPropsOnChange(withPropsOnChange(....... when this component gives you an issue you begin to wonder what HOCs are really doing for you. Having a render prop is slightly better but even this escape hatch isn't foolproof and you'll still end up needing things like onClickOutside. |
|