Skip to content

[Proposal] component configuration pattern #5566

Discussion options

You must be logged in to vote

useCellProps hook

(idea from a conversation with @flash1293)

Instead of providing a convenience component, a more common pattern is a convenience hook

const RenderCellValue = ({ useCellProps }) => {
  useCellProps({ style });
  return <div>... content ...</div>;
};

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@snide
Comment options

@cee-chen
Comment options

@cee-chen
Comment options

@chandlerprall
Comment options

@chandlerprall
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@flash1293
Comment options

Comment options

You must be logged in to vote
1 reply
@cee-chen
Comment options

Answer selected by chandlerprall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants