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

Cannot pass React.forwardRef directly #221

Closed
diegohaz opened this issue Oct 20, 2018 · 3 comments
Closed

Cannot pass React.forwardRef directly #221

diegohaz opened this issue Oct 20, 2018 · 3 comments

Comments

@diegohaz
Copy link

I'm used to write overrides like this:

const overrides = {
  h1: H1,
  h2: H2,
}

But since I started wrapping my components with React.forwardRef it didn't work anymore. I have to use the object version.

Reproduction: https://codesandbox.io/s/p7w1o7p4yx

@diegohaz
Copy link
Author

@probablyup It doesn't seem to work. See https://codesandbox.io/s/p7w1o7p4yx

@quantizor
Copy link
Owner

Ok, I have an other idea.

@quantizor
Copy link
Owner

Fixed in 6.8.3 https://codesandbox.io/s/wq737kv2p7

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

No branches or pull requests

2 participants