Arguments passed to the defineCell method should be passed as props so that the caller can provide a React component (maybe rename defineCell to cellRenderer). Make sure to add tests with both pure functional components and standard class-based components.