-
Notifications
You must be signed in to change notification settings - Fork 36
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
DOCSP-6332: Add misc. charts directives #102
Conversation
const { className } = this.props; | ||
|
||
/* | ||
* Using findDOMNode() is discouraged in favor of passing refs to children, but we use it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought you're able to use ref hooks for stateless components. Or am I thinking of something else? Just wondering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use a ref hook to attach a ref to a DOM element within a functional component, but we can't attach a ref to the component itself (source). Good question!
[JIRA] [Staging] Regression tested on guides and charts.
seealso
andexample
admonitionshlist
) component