Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(withstyles): prop-types were incomplete #199

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Conversation

dazlious
Copy link
Collaborator

@dazlious dazlious commented Aug 26, 2021

This enables us to use refs without a warning in dev mode

  const ref = useRef();
  // ...
  withStyles(<Component ref={ref} />)

Before only functions were allowed

@dazlious dazlious merged commit bbfdd6d into main Aug 26, 2021
@dazlious dazlious deleted the fix/ref-prop-types branch August 26, 2021 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants