AdeleD / react-paginate

A ReactJS component that creates a pagination
MIT License
2.76k stars 628 forks source link

Fix renderOnZeroPageCount props type #454

Closed Nargonath closed 1 year ago

Nargonath commented 2 years ago

Per the documentation you can pass either a function, undefined or null. The way the type is set the null applies to the return of the function and not to the prop itself.

MonsieurV commented 1 year ago

Approves.

This will closes #461

seedy commented 1 year ago

@AdeleD Could you please release a patch with this fix ?

AdeleD commented 1 year ago

@seedy Done