When declaring a class like this:
class StoreListItem extends React.PureComponent {
// A bunch of stuff here
}
And then add wrapping it in React.forwardRef like this:
export default React.forwardRef((props, ref) => <StoreListItem {...props} forwardRef={ref} />);
The ESLint react/no-multi-comp rule gets triggered. Shouldn't this code be allowed?
indeed it should; same with memo or lazy.
@ljharb Anyone working on it? I would like to take a look at it.
Nope, go for it.
Most helpful comment
@ljharb Anyone working on it? I would like to take a look at it.