Skip to content

Using Stylex & accessing state #6119

Answered by snowystinger
BMCwebdev asked this question in Q&A
Discussion options

You must be logged in to vote

could you do something like this?

    <RACButton
      {...props}
      className={(renderProps) => stylex.props({...renderProps, {variant}}).className}
      style={(renderProps) => stylex.props({...renderProps, {variant}}).style}
    />

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@BMCwebdev
Comment options

@BMCwebdev
Comment options

@snowystinger
Comment options

Answer selected by BMCwebdev
@BMCwebdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants